Merge pull request 'Random rotation to generated maps' (#83) from randomPieceRotation into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #83 Reviewed-by: Mat_02 <diletomatteo@gmail.com>
This commit is contained in:
commit
35c7ecf471
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user