This commit is contained in:
Lukas Nöllemeyer 2024-08-17 16:00:02 +02:00
parent 866c2c14de
commit ba0356c338

View file

@ -94,8 +94,7 @@ class MainScreen(Screen):
for (y, row) in enumerate(map.walkable): for (y, row) in enumerate(map.walkable):
for (x, val) in enumerate(row): for (x, val) in enumerate(row):
pos = map_pos_to_world_pos(Position(x,y)) pos = map_pos_to_world_pos(Position(x,y))
graphic = Graphic(0) if val else\ graphic = Graphic(0 if val else WALL_CHAR if map.walkable[y+1,x] else VERTICAL_WALL_CHAR)
Graphic(WALL_CHAR) if map.walkable[y+1,x] else Graphic(VERTICAL_WALL_CHAR)
draw(pos, graphic) draw(pos, graphic)
# draw all entities that are not actors # draw all entities that are not actors
for entity in g.world.Q.all_of(components=[Position, Graphic]).none_of(tags=[IsActor]): for entity in g.world.Q.all_of(components=[Position, Graphic]).none_of(tags=[IsActor]):