Ejemplo n.º 1
0
    def __init__(self, loc):
        Sprite.__init__(self)

        self.anim = CoinAnimation()
        self.image = self.anim.get_current_frame()
        self.orig_rect = self.image.get_rect()
        self.orig_rect.topleft = loc

        self.sfx = load_sfx("coin")
        self.visible = True
        self.falling = True
        self.bounce = 0

        self.update(0)
Ejemplo n.º 2
0
 def setup(self):
     self.sfx = load_sfx("pause")
Ejemplo n.º 3
0
 def setup(self):
     self.sfx = load_sfx("pause")