コード例 #1
0
ファイル: object.py プロジェクト: pombredanne/axengine2
 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)
コード例 #2
0
ファイル: object.py プロジェクト: pombredanne/axengine2
 def __init__(self, obj):
     AnimatedSprite.__init__(self, obj)
     self.switch_image(0,0)