Commit da6c4e3d by BellCodeEditor

save project

parent 252a48d7
Showing with 5 additions and 5 deletions
...@@ -23,12 +23,12 @@ while True: ...@@ -23,12 +23,12 @@ while True:
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
# 将贪吃蛇画上去 # 将贪吃蛇画上去
snakelist.pop(0) snakeList.pop(0)
snakelist.append(x,y) snakeList.append((x,y))
screen.blit(range,(x,y)) screen.blit(right,(x,y))
# 将贪吃蛇的身体画上去 # 将贪吃蛇的身体画上去
for i in range (len(snakelist)-1): for i in range (len(snakeList)-1):
screen.blit(body, snakelist[i]) screen.blit(body, snakeList[i])
# 将果实画上去 # 将果实画上去
screen.blit(food, (360, 300)) 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