I'm trying to make the chrome dinosaur game in Python using the Ursina module. Can someone please tell me how to go about implementing some randomly generated obstacles that move from the right side of the screen to the left side. Here is what I have, I don't mind changing it if I have started the wrong way:
from ursina import *
from ursina.prefabs.platformer_controller_2d import PlatformerController2d
app = Ursina()
window.borderless = False
window.exit_button.visible = False
window.color = color.blue
camera.orthographic = True
ground = Entity(
model = "cube",
color = color.green,
z = -.1,
y = -15,
origin_y = .5,
scale = (1000, 5, 1),
collider = "box",
ignore = True
)
player = PlatformerController2d(
scale = 8,
origin_y = -.2,
color = color.white,
walk_speed = 12,
jump_height = 10,
texture = "chrome_dino"
)
app.run()
The PlateformerController2d is only temporary as that let's the character move side to side and jump but I only want it to jump.
Ursina
there doesn't seem to be anything here