Extended the level.
Add missing grass tiles.
This commit is contained in:
parent
155e82aaf0
commit
954a46f965
Binary file not shown.
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 8.8 KiB |
@ -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
|
||||||
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user