Added lake borders, one last thing to fix...

This commit is contained in:
Ognjen Milan Robovic 2024-05-25 14:45:01 -04:00
parent 1d0e71f814
commit ca93e3ad8e
7 changed files with 12 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -147,7 +147,18 @@ package body world is
map.tiles (lake_x + x - 1, lake_y + y) := 33;
elsif matrix = ((1, 0), (0, 0)) then
map.tiles (lake_x + x - 1, lake_y + y - 1) := 35;
--~elsif matrix = ((1, 1), (1, 0)) then
elsif map.tiles (lake_x + x, lake_y + y) not in 18 .. 23
and map.tiles (lake_x + x, lake_y + y + 1) in 18 .. 23 then
map.tiles (lake_x + x, lake_y + y) := 24;
elsif map.tiles (lake_x + x, lake_y + y) in 18 .. 23
and map.tiles (lake_x + x, lake_y + y + 1) not in 18 .. 23 then
map.tiles (lake_x + x, lake_y + y + 1) := 25;
elsif map.tiles (lake_x + x, lake_y + y) not in 18 .. 23
and map.tiles (lake_x + x + 1, lake_y + y) in 18 .. 23 then
map.tiles (lake_x + x, lake_y + y) := 26;
elsif map.tiles (lake_x + x, lake_y + y) in 18 .. 23
and map.tiles (lake_x + x + 1, lake_y + y) not in 18 .. 23 then
map.tiles (lake_x + x + 1, lake_y + y) := 27;
end if;
end;
end loop;