fixed doors
This commit is contained in:
parent
200a0a4996
commit
e3dfc649d4
3 changed files with 4 additions and 8 deletions
|
|
@ -109,7 +109,7 @@ class MainScreen(Screen):
|
|||
console.rgba[["ch","fg"]][j, i] = 0x2591, (50,50,50, 255)
|
||||
continue
|
||||
walkable = (not in_map) or map.walkable[map_pos.y, map_pos.x]
|
||||
if walkable:
|
||||
if walkable or world_pos in doors:
|
||||
console.rgba[["ch","fg"]][j, i] = FLOOR_CHAR, (70,70,70, 255)
|
||||
continue
|
||||
ch = VERTICAL_WALL_CHAR
|
||||
|
|
|
|||
|
|
@ -47,7 +47,8 @@ class SelectItem(MenuItem):
|
|||
|
||||
def on_draw(self, console: tcod.console.Console, x: int, y: int, highlight: bool) -> None:
|
||||
"""Render this items label."""
|
||||
console.print(x, y, self.label, fg=(255, 255, 255), bg=(64, 64, 64) if highlight else (0, 0, 0))
|
||||
#g.foreground.print(x, y, self.label, fg=(255, 255, 255), bg=(64, 64, 64) if highlight else (0, 0, 0))
|
||||
g.background.print(x, y, self.label, fg=(255, 255, 255), bg=(64, 64, 64) if highlight else (0, 0, 0))
|
||||
|
||||
|
||||
@attrs.define()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue