Commit febd9cb5 by BellCodeEditor

save project

parent 96d61ddb
Showing with 3 additions and 3 deletions
......@@ -29,13 +29,13 @@ while True:
if event.key == locals.K_right and setheading != "left":
setheading="right"
snake_head=right
if event.key == locals.K_left:
if event.key == locals.K_left and setheading != "right":
setheading="left"
snake_head=left
if event.key == locals.K_up:
if event.key == locals.K_up and setheading != "down":
setheading="up"
snake_head=up
if event.key == locals.K_down:
if event.key == locals.K_down and setheading != "up":
setheading="down"
snake_head=down
x += 30
......
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