Commit c9f282c7 by BellCodeEditor

save project

parent 4c78303d
Showing with 2 additions and 2 deletions
...@@ -24,7 +24,7 @@ while True: ...@@ -24,7 +24,7 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
elif event.type==locals.KEYDOWN elif event.type==locals.KEYDOWN:
if event.key==locals.K_DOWN and setheading != "up" if event.key==locals.K_DOWN and setheading != "up"
setheading="down" setheading="down"
if event.key==locals.K_UP and setheading != "down" if event.key==locals.K_UP and setheading != "down"
...@@ -33,7 +33,7 @@ while True: ...@@ -33,7 +33,7 @@ while True:
setheading="right" setheading="right"
if event.key==locals.K_LEFT and setheading != "right" if event.key==locals.K_LEFT and setheading != "right"
setheading="left" setheading="left"
if setheading == "right"
P.append((x,y)) P.append((x,y))
P.pop(0) P.pop(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