Exemplo n.º 1
0
    def __init__(self, model):
        PickupView.__init__(self)
        self.model = model

        self.sprite = resman.get("game.copper_sprite").clone()
        self.animTimer = LoopAnimationTimer(25, 0, self.sprite.max_x)
        self.animTimer.set_frame(0, random.randint(0, self.sprite.max_x - 1))
Exemplo n.º 2
0
    def __init__(self, model):
        PickupView.__init__(self)
        self.model = model

        self.sprite = resman.get("game.mirror_sprite").clone()
        self.animTimer = LoopAnimationTimer(25, 0, 9)
Exemplo n.º 3
0
    def __init__(self, model):
        PickupView.__init__(self)
        self.model = model

        self.sprite = resman.get("game.key_sprite")
        self.animTimer = LoopAnimationTimer(25, 0, 19)
Exemplo n.º 4
0
    def __init__(self, model):
        PickupView.__init__(self)
        self.model = model

        self.sprite = resman.get("game.flag%d_sprite" % (model.goldcar.nr + 1))
        self.animTimer = LoopAnimationTimer(20, 0, 8)