Commit 789f2d47 by BellCodeEditor

save project

parent bc2d2d81
Showing with 3 additions and 3 deletions
......@@ -18,15 +18,15 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
food_y = randon
#food_y = randon
else:
position.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(snake_head,position[-1])
#screen.blit(snake_head,position[-1])
# 将贪吃蛇的身体画上去
for i in range
#for i in range:
screen.blit(body, (210, 120))
screen.blit(body, (180, 120))
screen.blit(body, (180, 90))
......
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