Skip to content

Commit

Permalink
Merge pull request #14 from Imaginos16/gwagwa
Browse files Browse the repository at this point in the history
Fixes how superflat terrain is generated
  • Loading branch information
MarkSuckerberg authored Sep 14, 2023
2 parents 0efa1e5 + 6511ad7 commit 9701ae4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Blocktest/Code/Scenes/GameScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,12 @@ public GameScene(BlocktestGame game) {
Globals.ForegroundTilemap = new Tilemap(Globals.maxX, Globals.maxY);

for (int i = 0; i < Globals.maxX; i++) {
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[2], true, new Vector2Int(i, 5));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 4));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 3));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 2));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 1));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[1], true, new Vector2Int(i, 0));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[2], true, new Vector2Int(i, 59));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 58));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 57));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 56));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(i, 55));
BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[1], true, new Vector2Int(i, 54));
}

BuildSystem.PlaceBlockCell(BlockManager.AllBlocks[0], true, new Vector2Int(20, 20));
}
}

0 comments on commit 9701ae4

Please sign in to comment.