Commit cd29d3b6 by BellCodeEditor

save project

parent 138f4e44
Showing with 4 additions and 4 deletions
......@@ -55,10 +55,10 @@ while True:
y += 30
position.append((x, y))
if x==apple-x and y==apple-y:
num1=random.randin(1,22)
num2=random.randin(1,16)
apple-x=num1*30-30
apple-y=num2*30-30
apple-x=random.randin(0,660)
apple-y=random.randin(0,440)
position.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
......
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