Ejemplo n.º 1
0
class Char(Thing):
    def __init__(self, position, action_positions, description, name):
        super(Char, self).__init__((position[0], position[1]), action_positions, description)
        self.tile_set = CharacterTileSet("%s.png" % name)
        self.char_position = position
        self.name = name

    def get_image(self):
        return self.tile_set.get_sprite(self.char_position)[0]
Ejemplo n.º 2
0
 def __init__(self, position, action_positions, description, name):
     super(Char, self).__init__((position[0], position[1]), action_positions, description)
     self.tile_set = CharacterTileSet("%s.png" % name)
     self.char_position = position
     self.name = name