Commit e57a6638 by BellCodeEditor

save project

parent c2faeb34
Showing with 4 additions and 4 deletions
......@@ -43,13 +43,13 @@ while True:
# 接收到退出事件后退出程序
exit()
if event.type==locals.KEYYDOWN:
if event.key==locals.K_RIGHT and setheading !="left"
if event.key==locals.K_RIGHT and setheading !="left":
setheading="right"
if event.key==locals.K_LEFT and setheading !="right"
if event.key==locals.K_LEFT and setheading !="right":
setheading="left"
if event.key==locals.K_UP and setheading !="down"
if event.key==locals.K_UP and setheading !="down":
setheading=="up"
if event.key==locals.K_DOWM and setheading !="up"
if event.key==locals.K_DOWM and setheading !="up":
setheading="down"
screen.blit(background, (0, 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