Commit c2f9d133 by BellCodeEditor

save project

parent 3ecda529
Showing with 4 additions and 4 deletions
......@@ -23,16 +23,16 @@ while True:
# 接收到退出事件后退出程序
exit()
if event.type == locals.KEYDOWN:
if event.key==locals.K_w and c!="down":
if event.key==locals.K_UP and c!="down":
c="up"
d=up
if event.key==locals.K_s and c!="up":
if event.key==locals.K_DOWN and c!="up":
c="down"
d=do
if event.key==locals.K_d and c!="left":
if event.key==locals.K_RIGHT and c!="left":
c="right"
d=ri
if event.key==locals.K_a and c!="right":
if event.key==locals.K_LEFT and c!="right":
c="left"
d=le
if c=="left":
......
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