Commit 1b0765bb by BellCodeEditor

save project

parent c7bfd696
Showing with 5 additions and 2 deletions
......@@ -7,7 +7,7 @@ pygame.init()
# 创建一个窗口
FPS=pygame.time.Clock()
screen=pygame.display.set_mode((800,600))
screen=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
right=pygame.image.load("right.png")
......@@ -66,7 +66,10 @@ while True:
fenshu+=10
else:
position.pop(0)
if x<0 or x>630 or y<0 or y>450:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(apple_x,apple_y))
screen.blit(tou, position[-1])
......
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