From f5d9ccd6e6e2db01a949737fa790005272ae7d85 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 15 Aug 2022 15:47:07 +0000 Subject: [PATCH] puzzle debug render stuff --- .../source/HabitState.kiss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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))