Commit 971f89a2 by BellCodeEditor

save project

parent 96c6c611
Showing with 18 additions and 0 deletions
......@@ -26,3 +26,20 @@ if event.type == locals.K_UP and setheading != "down":
if event.type == locals.K_DOWN and setheading != "up":
setheading = 'down'
elif setheading == "right":
x -= 30
elif setheading == "left":
x -= 30
elif setheading == "up":
y -= 30
elif setheading == "down":
y -= 30
snake_head = "right"
setheading = "down"
snake_head = "down"
screen.blit(snake_head)
\ No newline at end of file
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