quit on escape

This commit is contained in:
2022-07-09 20:42:49 +00:00
parent 26af1f6e99
commit 1c7aa18f38

View File

@@ -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)