Skip to content

Commit df6da14

Browse files
authored
Merge pull request #39 from endlessm/push-nunonmqzzqwn
player: Invert jump velocity parameter & adjust range
2 parents a0c29b4 + 738db14 commit df6da14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/player.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const _PLAYER_ACTIONS = {
3434

3535
## How high does your character jump? Note that the gravity will
3636
## be influenced by the [member GameLogic.gravity].
37-
@export_range(-1000, 1000, 10, "suffix:px/s") var jump_velocity = -880.0
37+
@export_range(0, 2000, 10, "suffix:px/s") var jump_velocity = 880.0
3838

3939
## How much should the character's jump be reduced if you let go of the jump
4040
## key before the top of the jump? [code]0[/code] means “not at all”;
@@ -107,7 +107,7 @@ func _on_gravity_changed(new_gravity):
107107

108108

109109
func _jump():
110-
velocity.y = jump_velocity
110+
velocity.y = -jump_velocity
111111
coyote_timer = 0
112112
jump_buffer_timer = 0
113113
if double_jump_armed:

0 commit comments

Comments
 (0)