Commit 1a0c1f60 by BellCodeEditor

auto save

parent e73e699f
Showing with 6 additions and 1 deletions
...@@ -12,11 +12,16 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -12,11 +12,16 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('周杰伦_费玉清-千里之外.mp3') pygame.mixer.music.load('周杰伦_费玉清-千里之外.mp3')
volume = 0.2
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play() pygame.mixer.music.play()
......
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