fiddle with bubbles

This commit is contained in:
2022-07-09 03:07:30 +00:00
parent f5b9ea3e59
commit 8ab22392b8
3 changed files with 17 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ class Jigsawx {
public function new( pieceWidth: Float
, pieceHeight: Float
, edgeLeeway: Float
, bubbleSize: Float
, rows_: Int
, cols_: Int
, r: FlxRandom) {
@@ -63,7 +64,7 @@ class Jigsawx {
for( row in 0...rows ){
pieces.push( new Array() );
for( col in 0...cols ){
jig = new JigsawPiece( xy, row, col, lt, rt, rb, lb, sides[ row ][ col ] );
jig = new JigsawPiece( xy, row, col, bubbleSize, lt, rt, rb, lb, sides[ row ][ col ] );
pieces[ row ][ col ] = jig;
jigs.push( jig );
xy.x += dx;