Commit 9985eac0 by BellCodeEditor

save project

parent b42507ca
Showing with 2 additions and 2 deletions
......@@ -17,6 +17,8 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play()
volume = 0.2
pygame.mixer.music.set_volume(volume)
......@@ -60,4 +62,3 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
\ No newline at end of file
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