Esempio n. 1
0
    def __init__(self, x, y, special_effect=None):
        self.img = pygame.image.load(c.bar_image_filename)
        GameObject.__init__(self, x, y, self.img.get_width(),
                            self.img.get_height())

        self.special_effect = special_effect
Esempio n. 2
0
 def __init__(self, x, y, w, h, color, special_effect=None):
     GameObject.__init__(self, x, y, w, h)
     self.color = color
     self.special_effect = special_effect
     self.moving_up = False