Commit 0f7fdd27 by BellCodeEditor

save project

parent d9bfeaa3
Showing with 1 additions and 1 deletions
...@@ -14,11 +14,11 @@ food = pygame.image.load('apple.png') ...@@ -14,11 +14,11 @@ food = pygame.image.load('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
list=[(180,90),(180,120),(210,120),(x,120)] list=[(180,90),(180,120),(210,120),(x,120)]
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
if event.type == locals.KEYDOWN
# 将背景图画上去 # 将背景图画上去
x+=30 x+=30
list.append((x,y)) list.append((x,y))
......
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