From 1c7aa18f38e09bba874f0afc79137b07d671fb24 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 9 Jul 2022 20:42:49 +0000 Subject: [PATCH] quit on escape --- .../flixel-desktop-habit-puzzle-game/source/HabitState.kiss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss index b69ddf85..8b4c3359 100644 --- a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss +++ b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss @@ -24,6 +24,9 @@ // Hold left-click to hide the habit text and see the image clearly: (when entryTexts (if FlxG.mouse.pressed (remove entryTexts) (add entryTexts))) + (when FlxG.keys.justPressed.ESCAPE + (Sys.exit 0)) + // drag along connected pieces (when draggingSprite (let [dx (- draggingSprite.x draggingLastPos.x)