Commit c9f282c7 by BellCodeEditor

save project

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