Final touches
This commit is contained in:
3
main.gd
3
main.gd
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user