This commit is contained in:
2024-10-25 17:48:21 +02:00
parent ab6acac55b
commit 5dc5c305e3
7 changed files with 144 additions and 38 deletions

View File

@ -11,7 +11,7 @@ func _physics_process(delta: float) -> void:
velocity += get_gravity() * delta
# Handle jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
if (Input.is_action_just_pressed("ui_accept") or Input.is_action_just_pressed("ui_up")) and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.