diff --git a/src/assets/images/tiles_grass_32.png b/src/assets/images/tiles_grass_32.png index a755aa9..ee54e25 100644 Binary files a/src/assets/images/tiles_grass_32.png and b/src/assets/images/tiles_grass_32.png differ diff --git a/src/assets/levels/level1.txt b/src/assets/levels/level1.txt index 28726cf..afc06bc 100644 --- a/src/assets/levels/level1.txt +++ b/src/assets/levels/level1.txt @@ -1,21 +1,21 @@ -x x -x x -x x -x S S x -x xxxxxx S S x -x xxxxxxxxxxx x -x x -x xxxxx x -x xxxxxx x x -x x xxxxxxxxx x -x S S x x x -x xxxxxx xxxxxx xxxxx xxxxx xxxxxxx xxxxx x -x x x x -x x x xxx x -x x S x x x S S x -xxxxxxxxxx xxxxx xxxxx x xxxx xxx x xxxxx xxxxx x -x x x x x -x S S S x xxx x x -x P S S S S S x x x E x -xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +x S S S x +x xxxxx xxxxx xxxxxx x +x x +x S S x +x xxxxxx S S xxxxxxxxxx xxxxx x +x xxxxxxxxxxx x x +x x xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x +x xxxxx S x x x x xxxxx x +x xxxxxx x xxxxx x xxx x x x x +x x xxxxxxxxx x x S xx x x +x S S x x x xxxxxxxxxxx xxxxx xxxxxxxxxxxxx x xxxxx x +x xxxxxx xxxxxx xxxxx xxxxx xxxxxxx xxxxx S x x x x x x xxxxx x +x x x xxxxxxxxxxx x x x xxx xx x +x x x xxx x xxx x x x +x x S x x x S S x S x xxxxxxx x +xxxxxxxxxx xxxxx xxxxx x xxxx xxx x xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxx x +x x x x x x +x S S S x xxx x x x +x P S S S S S x x x x E x +xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \ No newline at end of file diff --git a/src/game_scene.zig b/src/game_scene.zig index d6b822f..b83756f 100644 --- a/src/game_scene.zig +++ b/src/game_scene.zig @@ -128,6 +128,7 @@ pub const GameScene = struct { const ordinals = tiles.getOrdinals(x, y, .Grass); var offset: usize = 17; switch (ordinals.count()) { + 0 => offset = 16, 1 => { if (ordinals.right) offset = 0; if (ordinals.left) offset = 3; @@ -144,6 +145,7 @@ pub const GameScene = struct { }, 3 => { if (!ordinals.left) offset = 6; + if (!ordinals.top) offset = 18 + self.game.randomTileOffset(x, y, 2); if (!ordinals.right) offset = 7; if (!ordinals.bottom) offset = 10 + self.game.randomTileOffset(x, y, 2); },