render jigsaw match zones for debugging

This commit is contained in:
2022-07-11 21:38:08 +00:00
parent 15245c4707
commit f2d01ac4a1

View File

@@ -190,6 +190,11 @@
(set s.cameras [pieceCamera])
(#when debug
(let [matchZones [(matchZoneLeft s) (matchZoneRight s)(matchZoneUp s)(matchZoneDown s)]]
(doFor z matchZones
(FlxSpriteUtil.drawRect s (- z.x s.x) (- z.y s.y) z.width z.height FlxColor.TRANSPARENT (object thickness 1 color FlxColor.RED)))))
(rewardSprites.add s)))
(doFor row (range PUZZLE_HEIGHT)
(doFor col (range PUZZLE_WIDTH)