Commit 7c324672 by BellCodeEditor

save project

parent eb7cbe2a
Showing with 5 additions and 2 deletions
......@@ -10,8 +10,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = ["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
pygame.mixer.music.load("歌曲4.ogg")
num = -1
volume = 0.2
......@@ -24,6 +23,10 @@ while True:
if event.type == locals.QUIT:
exit()
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
screen.blit (logo_img, (170,60))
......
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