approximate square pieces for any puzzle aspect ratio

This commit is contained in:
2022-08-10 20:25:59 +00:00
parent 5ffd0904b1
commit ce2583c3aa

View File

@@ -48,10 +48,13 @@
(pieceCamera.updateScrollWheelZoom elapsed 5)
(pieceCamera.updateMouseBorderControl elapsed KEYBOARD_SCROLL_SPEED 0.002 uiCamera)
// Hold left-click to hide the habit text and see the image clearly:
(when entryWindow (if FlxG.mouse.pressed (entryWindow.hide) (entryWindow.show)))
(when entryWindow
(when FlxG.keys.justPressed.ESCAPE
(if (entryWindow.isShown)
(entryWindow.hide)
(entryWindow.show))))
(when FlxG.keys.justPressed.DELETE
(Sys.exit 0))
// TODO provide a saner/configurable set of bindings to trigger these ui action functions
@@ -358,7 +361,7 @@
(logTexts.clear)
(set logTextY 0))
(let [text (new FlxText FlxG.width logTextY 0 message textSize)]
(set text.color entryWindow.textColor)
(set text.color FlxColor.LIME)
(set text.cameras [uiCamera])
(+= logTextY text.height)
(-= text.x text.width)