Commit 13689796 by BellCodeEditor

save project

parent 907981bb
Showing with 3 additions and 11 deletions
......@@ -12,12 +12,9 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
a = pygame.image.load('歌曲1.wav')
b = pygame.image.load('歌曲2.wav')
c = pygame.image.load('歌曲3.wav')
d = pygame.image.load('歌曲4.ogg')
n =[a,b,c,d]
num = -1
# 载入音乐
pygame.mixer.music.load('歌曲4.ogg') # 载入音乐
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......@@ -57,11 +54,6 @@ while True:
if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play()
num = 1
if num > len(n)-1:
num = 0
pygame.mixer.music.load(n[num])
# 绘制画面
screen.blit(bg_img, (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