Commit af67c7af by BellCodeEditor

save project

parent d5739bd2
Showing with 10 additions and 2 deletions
++ "b/q.com\343\200\202py"
......@@ -51,6 +51,7 @@ while True:
y -= 30
else:
y += 30
position.append((x, y))
position.pop(0)
# 将背景图画上去
......@@ -65,4 +66,11 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
FPSCLOCK.tick(3)
apple_x=random.randiant(0,660)
apple_x=random.randiant(0,480)
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