summaryrefslogtreecommitdiff
path: root/src/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.gd')
-rw-r--r--src/game.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.gd b/src/game.gd
index 218d975..0135b76 100644
--- a/src/game.gd
+++ b/src/game.gd
@@ -12,6 +12,8 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("restart"):
Event.emit_signal("game_restart")
+ if event.is_action_pressed("debug"):
+ Event.emit_signal("toggle_debug")
func _on_snake_segment_body_entered(body: Node) -> void: