Both ui_accept and jump_0 are now able to skip death anim and intermission screen

This commit is contained in:
guzlad
2025-10-07 19:14:46 +02:00
parent 26ea7963ab
commit 6e957e7d25
2 changed files with 2 additions and 2 deletions

View File

@@ -25,5 +25,5 @@ func physics_update(delta: float) -> void:
player.velocity.y += (player.JUMP_GRAVITY / delta) * delta
player.velocity.y = clamp(player.velocity.y, -INF, player.MAX_FALL_SPEED)
player.move_and_slide()
if Input.is_action_just_pressed("jump_0"):
if Input.is_action_just_pressed("ui_accept") or Input.is_action_just_pressed("jump_0"):
player.death_load()

View File

@@ -115,7 +115,7 @@ func show_best_time() -> void:
func _process(_delta: float) -> void:
if can_transition:
if Input.is_action_just_pressed("ui_accept"):
if Input.is_action_just_pressed("ui_accept") or Input.is_action_just_pressed("jump_0"):
transition()
func _exit_tree() -> void: