Advertisement
Sanjin1

Untitled

Sep 28th, 2021
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. from ursina import *
  2. from ursina.prefabs.first_person_controller import FirstPersonController
  3.  
  4. app = Ursina()
  5.  
  6. #Build a floor
  7. floor = Entity(collider = 'box',
  8.                model = 'plane',
  9.                scale = (100,1,100),
  10.                color = color.white.tint(-0.1),
  11.                texture = 'white_cube',
  12.                texture_scale = (100,100))
  13.  
  14. player = FirstPersonController(model ='cube', collider = 'box')
  15.  
  16. #Create a First person controller (player)
  17.  
  18. #spawn bullets when we press left mouse
  19.  
  20. app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement