Commit b21db6c9 by BellCodeEditor

save project

parent 84b0f5db
Showing with 4 additions and 2 deletions
......@@ -14,7 +14,7 @@ food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
x=240
y=120
f=pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -31,6 +31,7 @@ while True:
# 将果实画上去
screen.blit(food, (360, 300))
x+=30
y+=30
y+=30
f.tick(5)
# 刷新画面
pygame.display.update()
\ No newline at end of file
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