Random rotation to generated maps #83

Merged
tonitch merged 1 commits from randomPieceRotation into master 2023-05-20 12:31:53 +02:00

View File

@ -93,7 +93,9 @@ public class MapGenerator {
}
}
}
ret.addPiece(new Piece(shape));
Piece piece = new Piece(shape);
piece.RotateRight(rand.nextInt(4));
ret.addPiece(piece);
}
//generate pieces