Commit 98259b58 by BellCodeEditor

auto save

parent 5212afa8
Showing with 4 additions and 4 deletions
......@@ -4,7 +4,7 @@ from pygame import locals
pygame.init() # 初始化
# 创建窗口
screen = pygame.display.set_mode((640, 480))
pant"C:\\User\\bell
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
......@@ -50,9 +50,9 @@ while True:
if pygame.mixer.music.get_busy() == False:
num+=1
if num > len(music)-1:
if num > len(music_list)-1:
num=0
pygame.mixer.music.load(music[num])
pygame.mixer.music.load()
pygame.mixer.music.play()
# 绘制画面
......@@ -63,5 +63,5 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
'歌曲4.ogg'
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