diff --git a/Unique3D.py b/Unique3D.py index a7d073c..5694d36 100644 --- a/Unique3D.py +++ b/Unique3D.py @@ -67,11 +67,10 @@ def __init__(self, position=(0,0,0), Voxel(position=(i,0,j)) # else: - # c+=1 # Voxel( # position=(i,-1,j), - # texture=opt_texture[c%len(opt_texture)], - # default_color=color.random_color(), + # default_color=color.random_color(), + # texture='white_cube', # # default_color=color.white, # ) @@ -104,18 +103,24 @@ def input(key): player.gravity *= -1 window.fullscreen = 1 -player = FirstPersonController(collider='box') +player = FirstPersonController(collider='box', + model='sphere', + color=color.yellow, + texture='heightmap_1') + player.gravity = 10e-2 -player.y = 100 +player.x = 1 +player.y = 2 +player.z = 1 def update(): global deatils, player, won, cont tc = time.time() - # if player.y < -10 or player.y > 250: # respawn - # player.y = 150 + if player.y < -10 or player.y > 100: # respawn + player.y = 100 - if (player.y < -2) or (tc - t > 100): + if (player.y < -5) or (tc - t > 100): won.text = 'You Lost' won.color = color.red diff --git a/static/Super Mario Death.mp3 b/static/Super Mario Death.mp3 new file mode 100644 index 0000000..93c7167 Binary files /dev/null and b/static/Super Mario Death.mp3 differ diff --git a/static/Super Mario Won.mp3 b/static/Super Mario Won.mp3 new file mode 100644 index 0000000..2d6adba Binary files /dev/null and b/static/Super Mario Won.mp3 differ diff --git a/static/space.png b/static/space.png new file mode 100644 index 0000000..f804408 Binary files /dev/null and b/static/space.png differ diff --git a/static/super-mario-bros.mp3 b/static/super-mario-bros.mp3 new file mode 100644 index 0000000..4505662 Binary files /dev/null and b/static/super-mario-bros.mp3 differ diff --git a/static/wall.png b/static/wall.png new file mode 100644 index 0000000..b1029f7 Binary files /dev/null and b/static/wall.png differ