예제 #1
0
    def __init__(self, world, sprite, posx=0, posy=0):
        super(Player, self).__init__()

        self.sprite = sprite
        self.sprite.position = posx, posy

        self.frames = Frames()
        self.motiontype = MotionType()
        self.facing = Facing()
        self.velocity = Velocity()

        self.playerdata = PlayerData()
예제 #2
0
    def __init__(self, world, sprite, posx=0, posy=0):
        super(Horse, self).__init__()

        self.sprite = sprite.get_sprite()
        self.sprite_data = sprite
        self.sprite.position = posx, posy

        self.frames = Frames()
        self.motiontype = MotionType()
        self.facing = Facing()
        self.velocity = Velocity()

        self.horse_data = HorseData()