Example #1
0
 def __init__(self, obj):
     # A Character has animation frames, so we initialize it as ab AnimatedSprite.
     AnimatedSprite.__init__(self, obj)
     # Use the spritesheet's bg color for transparency.
     self.alpha = -1
     self.switch_image(self.dir, 1)
Example #2
0
 def __init__(self, obj):
     AnimatedSprite.__init__(self, obj)
     self.switch_image(0,0)