11from typing import Tuple
2-
2+ from color import current_bg
33import numpy as np # type: ignore
44
55# Tile graphics structured type compatible with Console.tiles_rgb.
2323)
2424
2525# SHROUD represents unexplored, unseen tiles
26- SHROUD = np .array ((ord (" " ), (255 , 255 , 255 ), (0 , 0 , 0 )), dtype = graphic_dt )
26+ SHROUD = np .array ((ord (" " ), (255 , 255 , 255 ), (current_bg )), dtype = graphic_dt )
2727
2828def new_tile (
2929 * , # Enforce the use of keywords, so that parameter order doesn't matter.
@@ -38,15 +38,15 @@ def new_tile(
3838
3939
4040floor = new_tile (
41- walkable = True , transparent = True , light = (ord ("." ), (102 , 0 , 51 ), ( 0 , 0 , 0 )) , dark = (ord ("." ), (51 , 51 , 51 ), (0 , 0 , 0 )), autotile = False
41+ walkable = True , transparent = True , light = (ord ("." ), (102 , 0 , 51 ), current_bg ) , dark = (ord ("." ), (51 , 51 , 51 ), (current_bg )), autotile = False
4242)
4343wall = new_tile (
44- walkable = False , transparent = False , light = (ord (" " ), (153 , 0 , 153 ), ( 0 , 0 , 0 )) , dark = (ord (" " ), (51 , 51 , 51 ), (0 , 0 , 0 )), autotile = True
44+ walkable = False , transparent = False , light = (ord (" " ), (153 , 0 , 153 ), current_bg ) , dark = (ord (" " ), (51 , 51 , 51 ), (current_bg )), autotile = True
4545)
4646down_stairs = new_tile (
4747 walkable = True ,
4848 transparent = True ,
49- dark = (ord (">" ), (0 , 100 , 100 ), (0 , 0 , 0 )),
50- light = (ord (">" ), (255 , 204 , 102 ), (0 , 0 , 0 )),
49+ dark = (ord (">" ), (0 , 100 , 100 ), (current_bg )),
50+ light = (ord (">" ), (255 , 204 , 102 ), (current_bg )),
5151 autotile = False
5252)
0 commit comments