def create_laminate_floor(x, y): tile = Tile() tile.type = TileType.LAMINATE_FLOOR tile.block_sight = False tile.block_move = False tile.char = ' ' tile.fcolour = libtcod.Color(140, 140, 190) tile.bcolour = libtcod.Color(140, 140, 190) return tile
def create_desk(x, y): tile = Tile() tile.type = TileType.DESK tile.block_sight = False tile.block_move = True tile.char = ' ' tile.fcolour = libtcod.Color(120, 120, 120) tile.bcolour = libtcod.Color(120, 120, 120) return tile
def create_dark_grass(x, y): tile = Tile() tile.type = TileType.GRASS tile.block_sight = False tile.block_move = False tile.char = ' ' tile.fcolour = libtcod.Color(0, 108, 0) tile.bcolour = libtcod.Color(0, 108, 0) return tile
def create_wall(x, y): tile = Tile() tile.type = TileType.WALL tile.block_sight = True tile.block_move = True tile.char = ' ' tile.fcolour = libtcod.Color(96, 96, 96) tile.bcolour = libtcod.Color(96, 96, 96) return tile
def create_door(x, y): tile = Tile() tile.type = TileType.DOOR tile.block_sight = False tile.block_move = False tile.char = ' ' tile.fcolour = libtcod.Color(140, 140, 190) tile.bcolour = libtcod.Color(140, 140, 190) tile.door = Door() return tile
def create_window(x, y): tile = Tile() tile.type = TileType.WINDOW tile.block_sight = False tile.block_move = True tile.char = ' ' tile.fcolour = libtcod.Color(196, 196, 196) tile.bcolour = libtcod.Color(96, 96, 96) tile.window = Window() return tile