fix puzzle piece optimization

This commit is contained in:
2022-07-09 01:15:29 +00:00
parent 1d7fe13705
commit 5cd71fa8b8
2 changed files with 5 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ import jigsawx.math.Vec2;
class HabitState extends FlxState {
public function drawPieceShape( surface: FlxSprite, jig: JigsawPiece, c: FlxColor )
{
var points = [for (point in jig.getPoints()) new FlxPoint(jig.xy.x + point.x, jig.xy.y + point.y)];
var points = [for (point in jig.getPoints()) new FlxPoint(point.x, point.y)];
points.push(points[0]);
FlxSpriteUtil.drawPolygon(
surface,