Commit 3eb00b11 by BellCodeEditor

save project

parent 2039c23e
Showing with 9 additions and 1 deletions
...@@ -17,7 +17,15 @@ while True: ...@@ -17,7 +17,15 @@ while True:
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.type==locals.K_RIGHT and setheading != "left": if event.type==locals.K_RIGHT and setheading != "left":
setheading = 'right' setheading = 'right'
x += 30
if setheading == 'right':
x += 30
elif setheading == 'left':
x -= 30
elif setheading == 'up':
y +=30
else:
y -= 30
position.append((x,y)) position.append((x,y))
position.pop(0) position.pop(0)
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
......
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