more dramatically scaled jigsaw geometry for all image sizes

This commit is contained in:
2022-08-10 18:19:24 +00:00
parent 3c708cd6f6
commit 4a7094faba
2 changed files with 15 additions and 14 deletions

View File

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