Random rotation to generated maps
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Debucquoy Anthony 2023-05-19 14:55:48 +02:00
parent d52d1cab77
commit 7467abfd11
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

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 //generate pieces