buty
This commit is contained in:
parent
866c2c14de
commit
ba0356c338
1 changed files with 1 additions and 2 deletions
|
|
@ -94,8 +94,7 @@ class MainScreen(Screen):
|
|||
for (y, row) in enumerate(map.walkable):
|
||||
for (x, val) in enumerate(row):
|
||||
pos = map_pos_to_world_pos(Position(x,y))
|
||||
graphic = Graphic(0) if val else\
|
||||
Graphic(WALL_CHAR) if map.walkable[y+1,x] else Graphic(VERTICAL_WALL_CHAR)
|
||||
graphic = Graphic(0 if val else WALL_CHAR if map.walkable[y+1,x] else VERTICAL_WALL_CHAR)
|
||||
draw(pos, graphic)
|
||||
# draw all entities that are not actors
|
||||
for entity in g.world.Q.all_of(components=[Position, Graphic]).none_of(tags=[IsActor]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue