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)
def setup(self): self.sfx = load_sfx("pause")