Commit eed0f355 by BellCodeEditor

auto save

parent d55b5659
Showing with 1 additions and 5 deletions
...@@ -10,10 +10,6 @@ FPSCLOCK = pygame.time.Clock()#计时器 ...@@ -10,10 +10,6 @@ FPSCLOCK = pygame.time.Clock()#计时器
# 背景 # 背景
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') right = pygame.image.load('right.png')
left = pygame.image.load('left.png')
up = pygame.image.load('up.png')
down = pygame.image.load('down.png')
food = pygame.image.load('apple.png') food = pygame.image.load('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
#设x,y坐标 #设x,y坐标
...@@ -25,7 +21,7 @@ while True: ...@@ -25,7 +21,7 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
#移动 x+=30#移动
position.append((x,y))#追加身体的坐标 position.append((x,y))#追加身体的坐标
position.pop(0)#删除身体末尾的旧坐标 position.pop(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