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()
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()