Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions objects/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ func handle_rotation(xRot: float, yRot: float, isController: bool, delta: float

func handle_gravity(delta):
gravity += 20 * delta

if gravity < 0 and is_on_ceiling():
gravity = 0

if gravity > 0 and is_on_floor():
jumps_remaining = number_of_jumps
Expand Down