Commit 95db8857 by BellCodeEditor

save project

parent af42fdd2
Showing with 7 additions and 7 deletions
...@@ -32,13 +32,13 @@ while True: ...@@ -32,13 +32,13 @@ while True:
setheading = "down" setheading = "down"
set_head = down set_head = down
if setheading == "right": if setheading == "right":
x += 10 x += 30
if setheading == "left": elif setheading == "left":
x -= 10 x -= 30
if setheading == "up": elif setheading == "up":
y += 10 y += 30
if setheading == "down": else:
y -= 10 y -= 30
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
snakeList.pop(0) snakeList.pop(0)
snakeList.append((x,y)) snakeList.append((x,y))
......
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