def __init__(self): Piedra.__init__(self) self.izquierda = random.randint(-490, 490) self.y = random.randint(-330, 330)
def actualizar(self): self.x -= 0 Piedra.actualizar(self) if self.x > 490: self.x = -490
def __init__(self, x=0, y=0): Piedra.__init__(self, x, y)