Commit c4eda811 by BellCodeEditor

save project

parent a0e66a2c
Showing with 2 additions and 1 deletions
......@@ -20,6 +20,7 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type==locals.KEYDOWN
x+=30
b.append((x,y))
b.pop(0)
......@@ -30,7 +31,7 @@ while True:
screen.blit(right, b[-1])
# 将贪吃蛇的身体画上去
# screen.blit(body, (210, 120))
# screen.blit(body, (180, 120))
# screen.blit(body, (180, 120))
# screen.blit(body, (180, 90))
for i in range(len(b)-1):
screen.blit(body,b[i])
......
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