Commit 0db6f238 by BellCodeEditor

save project

parent 53e1e1b0
Showing with 13 additions and 9 deletions
......@@ -17,7 +17,7 @@ c=[]
tick = 0
a = 0.2
b = play_img
angle = 0
d = 'C:\\Users\\XMBC\\Desktop\\a'
f = os.listdir(d)
for i in f:
......@@ -64,13 +64,13 @@ while True:
play_button = stop_img
if x > 420 and x < 520 and y > 350 and y < 400:
num +=1
if num > 0 :
num=len(c)-1
pygame.mixer.music.load(d + "//" + c[num])
pygame.mixer.music.play()
tick = 0
play_button = stop_img
num +=1
if num > len(c)-1 :
num=0
pygame.mixer.music.load(d + "//" + c[num])
pygame.mixer.music.play()
tick = 0
play_button = stop_img
if pygame.mixer.music.get_busy() == False:
num +=1
......@@ -79,11 +79,15 @@ while True:
pygame.mixer.music.load(d + "//" + c[num])
pygame.mixer.music.play()
angle += 1
w = pygame.transform.rotate(logo_img,angle)
z = w.get_rect(center = (320,200))
wz=(z[0],z[1])
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(b, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(w, wz) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
......
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