mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-24 14:30:45 -07:00
Finished ground zero map layout
This commit is contained in:
parent
5459a646b3
commit
33f5215e6d
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
|
@ -73,7 +73,7 @@ public class MapGenerator extends Generator{
|
|||
final int mag = 3;
|
||||
int newX = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x, y) * mag + x), 0, data.width()-1);
|
||||
int newY = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x + 9999, y + 9999) * mag + y), 0, data.height()-1);
|
||||
if(tiles[newX][newY].block() != Blocks.spawn){
|
||||
if(tiles[newX][newY].block() != Blocks.spawn && !tiles[x][y].block().synthetic()&& !tiles[newX][newY].block().synthetic()){
|
||||
tiles[x][y].setBlock(tiles[newX][newY].block());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue