Commit 00772a0b by BellCodeEditor

save project

parent 88c53386
Showing with 4 additions and 4 deletions
...@@ -52,16 +52,16 @@ while True: ...@@ -52,16 +52,16 @@ while True:
y -= 30 y -= 30
if setheading == "down": if setheading == "down":
y += 30 y += 30
setheading.append((x,y)) ed.append((x,y))
setheading.pop(0) ed.pop(0)
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
# 将贪吃蛇画上去 # 将贪吃蛇画上去
screen.blit(snke_head, setheading[-1]) screen.blit(snke_head, ed[-1])
# 将贪吃蛇的身体画上去 # 将贪吃蛇的身体画上去
for i in range(len(ed)-1): for i in range(len(ed)-1):
screen.blit(body,setheading[i]) screen.blit(body,ed[i])
# screen.blit(body, (210, 120)) # screen.blit(body, (210, 120))
# screen.blit(body, (180, 120)) # screen.blit(body, (180, 120))
# screen.blit(body, (180, 90)) # 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