no more need to uncomment and recompile for debug rendering
This commit is contained in:
@@ -59,14 +59,15 @@
|
|||||||
(#when debug
|
(#when debug
|
||||||
(debugLayer.clear)
|
(debugLayer.clear)
|
||||||
|
|
||||||
(when (and model.rewardFiles rewardSprites.alive)
|
(when (and model.rewardFiles rewardSprites.alive FlxG.debugger.visible)
|
||||||
(doFor s rewardSprites
|
(doFor s rewardSprites
|
||||||
null
|
|
||||||
// Uncomment for debugging piece rotation:
|
(let [i (dictGet indexMap s)
|
||||||
//(debugLayer.drawCircle s.x s.y 1 FlxColor.RED)
|
jig (dictGet pieceData i)]
|
||||||
//(debugLayer.drawCircle (+ s.x s.origin.x) (+ s.y s.origin.y) 1 FlxColor.LIME)
|
(kiss_flixel.SpriteTools.writeOnSprite "$i" 32 s (object x (Percent 0.5) y (Percent 0.5)) FlxColor.RED)
|
||||||
// Uncomment for debugging match zones:
|
(kiss_flixel.SpriteTools.writeOnSprite "(${jig.col},${jig.row})" 32 s (object x (Percent 0.5) y (Percent 0.7)) FlxColor.RED))
|
||||||
**(let [matchZones [(matchZoneLeft s) (matchZoneRight s)(matchZoneUp s)(matchZoneDown s)]]
|
|
||||||
|
(let [matchZones [(matchZoneLeft s) (matchZoneRight s)(matchZoneUp s)(matchZoneDown s)]]
|
||||||
(doFor z matchZones
|
(doFor z matchZones
|
||||||
(unless z.isEmpty
|
(unless z.isEmpty
|
||||||
(debugLayer.drawFlxRect z FlxColor.RED)))))))
|
(debugLayer.drawFlxRect z FlxColor.RED)))))))
|
||||||
@@ -482,11 +483,6 @@
|
|||||||
->:Void {
|
->:Void {
|
||||||
(loadRotatedGraphic unhighlightedS)
|
(loadRotatedGraphic unhighlightedS)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Uncomment to debug piece IDs
|
|
||||||
**(#when debug
|
|
||||||
(kiss_flixel.SpriteTools.writeOnSprite "$i" 32 s (object x (Percent 0.5) y (Percent 0.5)) FlxColor.RED)
|
|
||||||
(kiss_flixel.SpriteTools.writeOnSprite "(${jig.col},${jig.row})" 32 s (object x (Percent 0.5) y (Percent 0.7)) FlxColor.RED))
|
|
||||||
|
|
||||||
(set s.cameras [pieceCamera])
|
(set s.cameras [pieceCamera])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user