Commit 3f80b158 by BellCodeEditor

save project

parent b37d5f1e
Showing with 3 additions and 1 deletions
...@@ -27,7 +27,9 @@ score=0 ...@@ -27,7 +27,9 @@ score=0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序
if pygame.mixer.music.get_busy()==False:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT and setheading != "left": if event.key == locals.K_RIGHT and setheading != "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