summaryrefslogtreecommitdiff
path: root/src/game.gd
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-06-05 04:38:44 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-06-05 04:38:44 -0600
commite4423cc8490b7f5ec3449f568bf64e81f4d03248 (patch)
tree167f178e1197c21260f70eaffd0a3375742f3447 /src/game.gd
parent36abc689d783774ce4f2d7b5a1bb621d8684be45 (diff)
add more food types, refactored code and tidy up stuff
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: