do not draw background tile
This commit is contained in:
parent
b0f854fb63
commit
dc6c7cfd57
|
@ -1,18 +1,18 @@
|
|||
|
||||
|
||||
....
|
||||
. .
|
||||
.__.
|
||||
....
|
||||
.
|
||||
.
|
||||
..... .....
|
||||
.,,,...........
|
||||
.,_,. ..... .
|
||||
.,,,. ..... .
|
||||
..... ..... . ...
|
||||
. .......
|
||||
. ...
|
||||
. ...
|
||||
.....
|
||||
.___.
|
||||
.,,,........
|
||||
.,_,. .....
|
||||
.,,,. .....
|
||||
..... ..... ...
|
||||
. ...
|
||||
.............
|
||||
. . ...
|
||||
. .....
|
||||
_ .___.
|
||||
.___.
|
||||
.___.
|
||||
.....
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user