Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ursina import *
- from ursina.prefabs.first_person_controller import FirstPersonController
- app = Ursina()
- #Build a floor
- floor = Entity(collider = 'box',
- model = 'plane',
- scale = (100,1,100),
- color = color.white.tint(-0.1),
- texture = 'white_cube',
- texture_scale = (100,100))
- player = FirstPersonController(model ='cube', collider = 'box')
- #Create a First person controller (player)
- #spawn bullets when we press left mouse
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement