diff --git a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss index 9a313cbe..0aa4624a 100644 --- a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss +++ b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss @@ -38,11 +38,14 @@ (#when debug (debugLayer.clear) + (doFor s rewardSprites - //(s.drawCircle s.origin.x s.origin.y 5 FlxColor.LIME) - //(debugLayer.drawCircle (- s.x cameraBounds.x) (- s.y cameraBounds.y) 5 FlxColor.LIME) + null + // Uncomment for debugging piece rotation: + (debugLayer.drawCircle s.x s.y 1 FlxColor.RED) + (debugLayer.drawCircle (+ s.x s.origin.x) (+ s.y s.origin.y) 1 FlxColor.LIME) // Uncomment for debugging match zones: - (let [matchZones [(matchZoneLeft s) (matchZoneRight s)(matchZoneUp s)(matchZoneDown s)]] + **(let [matchZones [(matchZoneLeft s) (matchZoneRight s)(matchZoneUp s)(matchZoneDown s)]] (doFor z matchZones (unless z.isEmpty (debugLayer.drawFlxRect z FlxColor.RED)))))) @@ -65,7 +68,7 @@ (#when debug (when FlxG.keys.justPressed.SEMICOLON (set pieceCamera.zoom 1)) - (when FlxG.keys.justPressed.CONTROL + **(when FlxG.keys.justPressed.CONTROL (set save.data.storedPositions (new Map)) (set save.data.storedAngles (new Map)) (set save.data.storedOrigins (new Map))