Commit 96c6c611 by BellCodeEditor

save project

parent c8b77cad
Showing with 13 additions and 0 deletions
...@@ -14,3 +14,15 @@ position.pop(0) ...@@ -14,3 +14,15 @@ position.pop(0)
screen.blit(background) screen.blit(background)
for i in range(right, position) for i in range(right, position)
screen.blit(body, position[i]) screen.blit(body, position[i])
if event.type == locals.K_RIGHT and setheading != "left":
setheading = 'right'
if event.type == locals.K_LEFT and setheading != "right":
setheading = 'left'
if event.type == locals.K_UP and setheading != "down":
setheading = 'up'
if event.type == locals.K_DOWN and setheading != "up":
setheading = 'down'
\ 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