Commit 9b7f2b67 by BellCodeEditor

save project

parent c1799c2d
Showing with 10 additions and 9 deletions
......@@ -14,6 +14,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
t=[]
u==pygame
path="C:\\Users\\makcoo\\Desktop\\y"
filelist = os.listdir(path)
for i in filelist:
......@@ -50,17 +51,17 @@ while True:
p=play_img
pygame. mixer.music.pause()
if x>120 and x<220 and y>350 and y<400:
num-=1
if num<0:
num=len(music_list)-1
t-=1
if t<0:
t=len(music_list)-1
click=0
play_img=stop_img
pygame.mixer.music.load(music_list)
pygame.mixer.music.load(path+"//"+music_list)
pygame.mixer.music.play()
if x>120 and x<220 and y>350 and y<400:
num+=1
if num<0:
num=len(music_list)+1
t=t+1
if t<0:
t=len(music_list)+1
click=0
play_img=stop_img
pygame.mixer.music.load(music_list)
......@@ -97,6 +98,6 @@ while True:
screen.blit(p, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(next_img, (420, 350)) # 下一曲a
# 刷新画面
pygame.display.update()
pygame.display.updte()
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