Ursina engine game – example 1

Let’s start using ursina for a 3d game with Python, following the tutorial by MK coding space. I will try to syntetize what he says in the video

First install ursina

pip install ursina

Rotating cube

Now let’s do this

Ursina rotating cube

Rotate the cube pressing a key

#ursina game

from ursina import *
from random import randint

def update():
	"Rotating cube"

	global cube
        cube.rotation_y = cube.rotationy + time.dt*100

def main():
        global cube
	app = Ursina()
	cube = Entity(
		model="cube",
		color="cyan",
		texture="white_cube",
		scale=2)
	app.run()

main()


Subscribe to the newsletter for updates
Tkinter templates

Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Claude's Games

Arkanoid
Platform 2d

1. Memory game

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Advertisement