Commit 313b2bfb by BellCodeEditor

save project

parent d9eddbb9
Showing with 4 additions and 4 deletions
......@@ -22,13 +22,13 @@ while True:
# 接收到退出事件后退出程序
exit()
if event.type==locals.KEYDOWN:
if event.key==locals.k_RIGHT and s!='left':
if event.key==locals.K_RIGHT and s!='left':
s="right"
if event.key==locals.k_LEFT and s!='right':
if event.key==locals.K_LEFT and s!='right':
s="left"
if event.key==locals.k_UP and s!='down':
if event.key==locals.K_UP and s!='down':
s="up"
if event.key==locals.k_DOWN and s!='up':
if event.key==locals.K_DOWN and s!='up':
s="down"
if s == "right":
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