Logo Search packages:      
Sourcecode: magicor version File versions  Download package

def magicor::sprites::AnimatedSprite::__init__ (   self,
  x,
  y,
  w,
  h,
  animations,
  default = None 
) [inherited]

Arguments:
animations          A dictionary containing lists of animation frames.
groups              Sequence of sprite groups.
default             Default animation key.

Definition at line 203 of file __init__.py.

00203                                                               :
        """
        Arguments:
        animations          A dictionary containing lists of animation frames.
        groups              Sequence of sprite groups.
        default             Default animation key.
        """
        pygame.sprite.Sprite.__init__(self)
        self.resources = getResources()
        self._animations = animations
        self.width = w
        self.height = h
        self.x = x
        self.y = y
        self._frameIndex = 0
        self.rect = pygame.Rect((x, y, w, h))
        if default:
            self.setAnimation(default)
        else:
            self.setAnimation("default")

    def isDone(self):


Generated by  Doxygen 1.6.0   Back to index