pad rotated frames

This commit is contained in:
2022-08-13 17:04:51 +00:00
parent aa34b79826
commit a5ee16d3f4
2 changed files with 9 additions and 6 deletions

View File

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