fix debuglayer.drawcircle
This commit is contained in:
@@ -98,7 +98,6 @@ class DebugLayer extends FlxTypedGroup<FlxSprite> {
|
||||
return drawRect(rect.x, rect.y, rect.width, rect.height, outlineColor, thickness);
|
||||
}
|
||||
|
||||
// TODO
|
||||
public function drawCircle(x:Float, y:Float, radius: Float, color = FlxColor.WHITE, thickness = 1.0):FlxSprite {
|
||||
thickness = _thickness(thickness);
|
||||
|
||||
@@ -108,7 +107,7 @@ class DebugLayer extends FlxTypedGroup<FlxSprite> {
|
||||
s.mg(2 * (radius + thickness), 2 * (radius + thickness));
|
||||
add(s);
|
||||
}
|
||||
s.drawCircle(x - s.x + s.width / 2, y - s.y + s.height / 2, FlxColor.TRANSPARENT, {color:color, thickness:thickness});
|
||||
s.drawCircle(x - s.x, y - s.y, radius, FlxColor.TRANSPARENT, {color:color, thickness:thickness});
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user