mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 23:18:11 +00:00
Both ui_accept and jump_0 are now able to skip death anim and intermission screen
This commit is contained in:
@@ -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()
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user