Commit 31998112 by BellCodeEditor

save project

parent 113c3624
Showing with 4 additions and 2 deletions
......@@ -23,7 +23,7 @@ for i in fl:
# 载入音乐
n = -1
play_button=play_img
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......@@ -61,7 +61,7 @@ while True:
pygame.mixer.music.pause()
if x > 120 and x < 220 and y > 350 and y < 400:
n -= 1
if n = 0:
if n ==0:
n = len(m_l) - 1
pygame.mixer.music.load(path + '\\'+m_l[n])
pygame.mixer.music.play()
......@@ -83,6 +83,8 @@ while True:
pygame.mixer.music.load(path + '\\'+m_l[n])
pygame.mixer.music.play()
new_logo=pygame.transform.rotate(lolg_img,angle)
angle+=1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
......
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