在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pokepetter/ursina开源软件地址:https://github.com/pokepetter/ursina开源编程语言:Python 99.8%开源软件介绍:ursina ʕ •ᴥ•ʔゝ□An easy to use game engine/framework for python. Getting Started
If you want to install the newest version from git, you can install like this:
If you want to easily edit the source, it's recommended to clone the git repo and install as develop like this. Make sure you have git installed. https://git-scm.com/
Also install any of the optional dependencies you want from the list below, or install them all with:
On some systems you might have to use pip3 instead of pip in order to use Python 3 and not the old Python 2. Dependencies
Examplesfrom ursina import * # this will import everything we need from ursina with just one line.
app = Ursina()
ground = Entity(
model = 'cube',
color = color.magenta,
z = -.1,
y = -3,
origin = (0, .5),
scale = (50, 1, 10),
collider = 'box',
)
app.run() # opens a window and starts the game. How do I make a game?Ursina games are made by writing Python code. You can use any text editor you want, but personally I like to use Atom.
from ursina import * # this will import everything we need from ursina with just one line.
app = Ursina()
player = Entity(
model = 'cube' , # finds a 3d model by name
color = color.orange,
scale_y = 2
)
def update(): # update gets automatically called by the engine.
player.x += held_keys['d'] * .1
player.x -= held_keys['a'] * .1
app.run() # opens a window and starts the game.
Project Structure全部评论
专题导读
上一篇:GarageGames/Torque2D: MIT Licensed Open Source version of Torque 2D game engine ...发布时间:2022-06-08下一篇:coronalabs/corona: Solar2D Game Engine main repository (ex Corona SDK)发布时间:2022-06-08热门推荐
热门话题
阅读排行榜
|
请发表评论