def __init__(self, img, width, height, w, h, qtd): pygame.sprite.Sprite.__init__(self) self.width=w self.height=h self.num_images = qtd self.c_image = 0 self.image = Imagem.load_image(img, 1) self.rect = self.image.get_rect() self.pos = self.image.get_rect().move(width, height) self.vertical = 0
def __init__(self, img, height, speed, w, h, qtd): pygame.sprite.Sprite.__init__(self) self.width=w self.height=h self.num_images = qtd self.cImage = 0 self.speed = speed self.image = Imagem.load_image(img, 1) self.rect = self.image.get_rect() self.pos = self.image.get_rect().move(0, height) self.vertical = 0 self.pontos = 0 self.highscore = 0