Commit 882fcfcc by BellCodeEditor

save project

parent e0864c31
Showing with 6 additions and 2 deletions
......@@ -42,8 +42,12 @@ while True:
add = down
y += 30
if x==apple_x and y==apple_y:
apple_x=random.randint(0,660)
apple_y=random.randint(0,480)
a=random.randint(0,21)
b=random.randint(0,15)
apple_x=30*a
apple_y=30*b
else
pop(0)
screen.blit(background, (0, 0))
screen.blit(add, (x, y))
a12.append((x,y))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment