Commit e9484941 by BellCodeEditor

save project

parent f8544e00
Showing with 8 additions and 5 deletions

9.37 KB | W: | H:

8.05 KB | W: | H:

r.jpg
r.png
r.jpg
r.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -22,15 +22,18 @@ while True:
exit()
x+=30
sss.append((x,y))
sss.pop(1)
sss.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(right,(x,120) )
screen.blit(right,sss[-1] )
# 将贪吃蛇的身体画上去
screen.blit(body, (210, 120))
screen.blit(body, (180, 120))
screen.blit(body, (180, 90))
for i in range(len(sss)-1):
screen.blit(body,sss[i])
#screen.blit(body, (210, 120))
#screen.blit(body, (180, 120))
#screen.blit(body, (180, 90))
# 将果实画上去
screen.blit(food, (360, 300))
# 刷新画面
......
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