def __init__(self, obj): font = util.load_font(obj) self.image = font.render(obj['text_content'], True, obj['color']) Sprite.__init__(self, obj)
def __init__(self, obj): Sprite.__init__(self, obj) self.grid = {} if "map_tiles" in obj: self.create_tiles()