misc little things
This commit is contained in:
@@ -273,10 +273,9 @@
|
|||||||
(FlxSpriteUtil.alphaMask s source.pixels mask.pixels)
|
(FlxSpriteUtil.alphaMask s source.pixels mask.pixels)
|
||||||
|
|
||||||
(set s.cameras [pieceCamera])
|
(set s.cameras [pieceCamera])
|
||||||
|
// Uncomment for debugging match zones:
|
||||||
(#when debug
|
**(#when debug
|
||||||
// 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
|
(doFor z matchZones
|
||||||
(unless z.isEmpty
|
(unless z.isEmpty
|
||||||
(FlxSpriteUtil.drawRect s (- z.x s.x) (- z.y s.y) z.width z.height FlxColor.TRANSPARENT (object thickness 1 color FlxColor.RED))))))
|
(FlxSpriteUtil.drawRect s (- z.x s.x) (- z.y s.y) z.width z.height FlxColor.TRANSPARENT (object thickness 1 color FlxColor.RED))))))
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
(#if target.threaded
|
(#if target.threaded
|
||||||
(Thread.create downloadMp3)
|
(Thread.create downloadMp3)
|
||||||
{
|
{
|
||||||
(print "threading unavailable -- the program will freeze while downloading with youtube-dl")
|
(ui.displayMessage "threading unavailable -- the program will freeze while downloading with youtube-dl")
|
||||||
(downloadMp3)
|
(downloadMp3)
|
||||||
}))
|
}))
|
||||||
(true
|
(true
|
||||||
|
|||||||
@@ -37,4 +37,8 @@
|
|||||||
(when _playgroundKey (super.process archive ui)))
|
(when _playgroundKey (super.process archive ui)))
|
||||||
|
|
||||||
(method defaultPosition [:Entry e]
|
(method defaultPosition [:Entry e]
|
||||||
(object x 0.0 y 0.0 z 0.0))
|
(object x 0.0 y 0.0 z 0.0))
|
||||||
|
|
||||||
|
// TODO overridable circleContainsEntry function (default is to check only the position, Flixel version will use scaled sprite bounding box)
|
||||||
|
|
||||||
|
// TODO when a circle contains an entry in the current playground, add it as a child
|
||||||
Reference in New Issue
Block a user