Commit 3ecda529 by BellCodeEditor

save project

parent d1cfb6d4
Showing with 5 additions and 5 deletions
......@@ -22,17 +22,17 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type == locals.KEYDOWN:
if event.key==locals.K_W and c!="down":
if event.type == locals.KEYDOWN:
if event.key==locals.K_w and c!="down":
c="up"
d=up
if event.key==locals.K_S and c!="up":
if event.key==locals.K_s and c!="up":
c="down"
d=do
if event.key==locals.K_D and c!="left":
if event.key==locals.K_d and c!="left":
c="right"
d=ri
if event.key==locals.K_A and c!="right":
if event.key==locals.K_a 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