Commit 795a8049 by BellCodeEditor

save project

parent 6b789946
Showing with 4 additions and 0 deletions
...@@ -48,6 +48,10 @@ while True: ...@@ -48,6 +48,10 @@ while True:
if x==apple_x and y==apple_y: if x==apple_x and y==apple_y:
apple_x=random.randint(30,630) apple_x=random.randint(30,630)
apple_y=random.randint(30,450) apple_y=random.randint(30,450)
else:
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 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