Skip to content

Commit 799d8c4

Browse files
update
1 parent 09ea262 commit 799d8c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
player = FirstPersonController()
1515
player.height = 2
1616
player.cursor = Entity(parent=camera.ui, model='quad',color=color.light_gray, scale=.008, rotation_z=45)
17-
player.gravity = 0.8
17+
player.gravity = 1
18+
player.jump_up_duration = .3
1819
# player.model = "assets/player.obj"
1920
# player.texture = "textures/"
2021

@@ -171,7 +172,7 @@ def update():
171172
if held_keys["shift"]:
172173
sneak()
173174

174-
elif held_keys["control"] and held_keys["w"] or held_keys["control"] and held_keys["w"] and held_keys["space"]:
175+
elif held_keys["control"] and held_keys["w"]:
175176
sprint()
176177

177178
elif held_keys["c"]:
@@ -363,7 +364,7 @@ def appendItems(self):
363364
DirectionalLight(parent=Voxel, y=2, z=3, shadows=True)
364365

365366
hand = Hand()
366-
selected = Selected()
367367
hotbar = Hotbar()
368+
selected = Selected()
368369
hotbar.appendItems()
369370
app.run()

0 commit comments

Comments
 (0)