Extended the level.

Add missing grass tiles.
This commit is contained in:
Sander Schobers 2023-06-05 06:43:46 +02:00
parent 155e82aaf0
commit 954a46f965
3 changed files with 22 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -1,21 +1,21 @@
x x x S S S x
x x x xxxxx xxxxx xxxxxx x
x x x x
x S S x x S S x
x xxxxxx S S x x xxxxxx S S xxxxxxxxxx xxxxx x
x xxxxxxxxxxx x x xxxxxxxxxxx x x
x x x x xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x
x xxxxx x x xxxxx S x x x x xxxxx x
x xxxxxx x x x xxxxxx x xxxxx x xxx x x x x
x x xxxxxxxxx x x x xxxxxxxxx x x S xx x x
x S S x x x x S S x x x xxxxxxxxxxx xxxxx xxxxxxxxxxxxx x xxxxx x
x xxxxxx xxxxxx xxxxx xxxxx xxxxxxx xxxxx x x xxxxxx xxxxxx xxxxx xxxxx xxxxxxx xxxxx S x x x x x x xxxxx x
x x x x x x x xxxxxxxxxxx x x x xxx xx x
x x x xxx x x x x xxx x xxx x x x
x x S x x x S S x x x S x x x S S x S x xxxxxxx x
xxxxxxxxxx xxxxx xxxxx x xxxx xxx x xxxxx xxxxx x xxxxxxxxxx xxxxx xxxxx x xxxx xxx x xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxx x
x x x x x x x x x x x
x S S S x xxx x x x S S S x xxx x x x
x P S S S S S x x x E x x P S S S S S x x x x E x
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

View File

@ -128,6 +128,7 @@ pub const GameScene = struct {
const ordinals = tiles.getOrdinals(x, y, .Grass); const ordinals = tiles.getOrdinals(x, y, .Grass);
var offset: usize = 17; var offset: usize = 17;
switch (ordinals.count()) { switch (ordinals.count()) {
0 => offset = 16,
1 => { 1 => {
if (ordinals.right) offset = 0; if (ordinals.right) offset = 0;
if (ordinals.left) offset = 3; if (ordinals.left) offset = 3;
@ -144,6 +145,7 @@ pub const GameScene = struct {
}, },
3 => { 3 => {
if (!ordinals.left) offset = 6; if (!ordinals.left) offset = 6;
if (!ordinals.top) offset = 18 + self.game.randomTileOffset(x, y, 2);
if (!ordinals.right) offset = 7; if (!ordinals.right) offset = 7;
if (!ordinals.bottom) offset = 10 + self.game.randomTileOffset(x, y, 2); if (!ordinals.bottom) offset = 10 + self.game.randomTileOffset(x, y, 2);
}, },