Skip to content

Commit

Permalink
Exit when Escape is pressed.
Browse files Browse the repository at this point in the history
Might not do anything on web, but is handy during development.
  • Loading branch information
nanodeath committed Jul 10, 2024
1 parent b401298 commit 6bcccbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clicky-clicker/game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 6bcccbe

Please sign in to comment.