Commit 3eb00b11 by BellCodeEditor

save project

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