Commit f99a305f by BellCodeEditor

save project

parent 541a1af7
Showing with 5 additions and 3 deletions
...@@ -53,6 +53,9 @@ while True: ...@@ -53,6 +53,9 @@ while True:
y += 30 y += 30
position.append((x, y)) position.append((x, y))
if x=apple_y and y=apple_x:
apple_x=random.randiant(0,660)
apple_x=random.randiant(0,480)
position.pop(0) position.pop(0)
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
...@@ -71,6 +74,4 @@ while True: ...@@ -71,6 +74,4 @@ while True:
apple_x=random.randiant(0,660)
apple_x=random.randiant(0,480) \ No newline at end of file
if
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