Commit 85eaed1e by BellCodeEditor

auto save

parent f7f6a5ad
Showing with 3 additions and 1 deletions
......@@ -16,11 +16,11 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
pygame.mixer.music.load('歌曲4.ogg') # 载入音乐
music_list=['歌曲1.wav','歌曲2.wav','歌曲3.wav','歌曲4.ogg']
num=-1
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
angle=0
while True:
for event in pygame.event.get():
......@@ -60,6 +60,8 @@ while True:
pygame.mixer.music.load(music_list[num])
pygame.mixer.music.play()
new_loga
# 绘制画面
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