From 6bcccbe93fc8919e1c5234e47e2b9d6fb876f6fd Mon Sep 17 00:00:00 2001 From: Max Aller Date: Tue, 9 Jul 2024 18:44:08 -0700 Subject: [PATCH] Exit when Escape is pressed. Might not do anything on web, but is handy during development. --- clicky-clicker/game.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clicky-clicker/game.gd b/clicky-clicker/game.gd index 05e4bf9..5e51c19 100644 --- a/clicky-clicker/game.gd +++ b/clicky-clicker/game.gd @@ -58,4 +58,5 @@ func _update_current_ball_count(): # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): - pass + if Input.is_action_just_pressed("ui_cancel"): + get_tree().quit()