Commit 16090efb by BellCodeEditor

save project

parent a97c4a6a
Showing with 3 additions and 1 deletions
......@@ -13,12 +13,14 @@ food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
fps=pygame.time.Clock()
x,y=240,120
p=[(210,120),(180,120),(180,90),(x,y)]
p=[(150,120),(180,120),(180,90),(x,y)]
s='right'
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type==locals.
x+=30
p.append((x,y))
p.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