def render_tiles(self, bg_color): tiles = graphics.get_tiles('all') rendered = {'space': graphics.get_space(bg_color)} for tile in tiles: rendered[tile] = graphics.render_text(tiles[tile], graphics.get_color(tile)) return rendered
def render_tiles(self, bg_color): tiles = graphics.get_tiles('all') rendered = { 'space': graphics.get_space(bg_color) } for tile in tiles: rendered[tile] = graphics.render_text(tiles[tile], graphics.get_color(tile)) return rendered
def __init__(self, x, y, symbol, color): self.x = x self.y = y self.char = graphics.render_text(symbol, color)