Commit 96c6c611 by BellCodeEditor

save project

parent c8b77cad
Showing with 14 additions and 2 deletions
......@@ -13,4 +13,16 @@ position.append((x,y))
position.pop(0)
screen.blit(background)
for i in range(right, position)
screen.blit(body, position[i])
\ No newline at end of file
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