Skip to content

Commit 546c206

Browse files
MLanghofkrisives
authored andcommitted
Created a ring of death as the outer world cells. (#191)
Fixes #179.
1 parent 4184fef commit 546c206

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/asmcup/runtime/Cell.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public Cell(World world, int cellX, int cellY) {
1414
this.cellY = cellY;
1515

1616
Generator gen = new Generator(world, this);
17+
18+
if (cellX == 0 || cellY == 0 || cellX == World.CELL_COUNT || cellY == World.CELL_COUNT) {
19+
gen.square(gen.same(TILE_HAZARD, 3), 0, 0, World.TILES_PER_CELL);
20+
return;
21+
}
1722

1823
gen.square(gen.variantRare(TILE_GROUND), 0, 0, World.TILES_PER_CELL);
1924

0 commit comments

Comments
 (0)