class zidan:
def __init__(self):
self.x = self
self.y = self
self.width = self
self.height = self
self.color = self
self.screen=self
def up():
pygame.draw.rect(self.screen, (0,144,0), (self.x, self.y+34, self.width, self.height+20), 0)#(0, 144, 662, 55), 0)
li=[]
c=zidan()
c.x=0
c.y=0
li.append(c)
while True:
for c in li:
c.y+c.y+2
c.up
if c.y>600:
li.remove(c)