Final touches

This commit is contained in:
2024-06-12 17:51:29 +02:00
parent 9cfd9e0200
commit 965a56c7ad
8 changed files with 120 additions and 77 deletions

View File

@@ -4,6 +4,8 @@ extends Node
func _ready():
$UserInterface/Retry.hide()
Engine.max_fps = 144
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
func _on_mob_timer_timeout():
var mob = mob_scene.instantiate()
@@ -22,6 +24,7 @@ func _on_mob_timer_timeout():
func _on_player_hit():
$MobTimer.stop()
$UserInterface/Retry.show()
Engine.max_fps = 30
func _unhandled_input(event):
if event.is_action_pressed("ui_accept") and $UserInterface/Retry.visible: