do not draw background tile

This commit is contained in:
evilchili 2025-08-08 22:50:08 -07:00
parent b0f854fb63
commit dc6c7cfd57
2 changed files with 15 additions and 13 deletions

View File

@ -1,18 +1,18 @@
....
. .
.__.
....
.
.
..... .....
.,,,...........
.,_,. ..... .
.,,,. ..... .
..... ..... . ...
. .......
. ...
. ...
.....
.___.
.,,,........
.,_,. .....
.,,,. .....
..... ..... ...
. ...
.............
. . ...
. .....
_ .___.
.___.
.___.
.....

View File

@ -79,7 +79,9 @@ class BattleMap:
empty_space = Position(y=-1, x=-1, value=self.tileset.empty_space)
for y in range(0, self.height):
for x in range(0, self.width):
pos = self.grid.at(y, x, empty_space)
pos = self.grid.at(y, x)
if not pos or pos.value == self.tileset.empty_space:
continue
map_image.paste(
self.tileset.render_tile(pos, [a or pos for a in self.grid.adjacent(pos)]),
(self.tileset.tile_size * x, self.tileset.tile_size * y),