Commit 55ef2513 by BellCodeEditor

save project

parent 4fe52564
Showing with 6 additions and 3 deletions
...@@ -55,7 +55,7 @@ while True: ...@@ -55,7 +55,7 @@ while True:
num=len(m)-1 num=len(m)-1
pygame.mixer.music.load(path+"\\"+m[num]) # 载入音乐 pygame.mixer.music.load(path+"\\"+m[num]) # 载入音乐
pygame.mixer.music.play() pygame.mixer.music.play()
play_button=stop_img play_b=stop_img
click=0 click=0
if x > 420 and x < 520 and y > 350 and y < 400: if x > 420 and x < 520 and y > 350 and y < 400:
num+=1 num+=1
...@@ -63,7 +63,7 @@ while True: ...@@ -63,7 +63,7 @@ while True:
num=0 num=0
pygame.mixer.music.load(path+"\\"+m[num]) # 载入音乐 pygame.mixer.music.load(path+"\\"+m[num]) # 载入音乐
pygame.mixer.music.play() pygame.mixer.music.play()
play_button=stop_img play_b=stop_img
click=0 click=0
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
...@@ -75,7 +75,10 @@ while True: ...@@ -75,7 +75,10 @@ while True:
new_logo = pygame.transform.rotate(logo_img, angle) new_logo = pygame.transform.rotate(logo_img, angle)
newRect=new_logo.get_rect(center=(320, 200)) newRect=new_logo.get_rect(center=(320, 200))
pos = (newRect[0], newRect[1]) pos = (newRect[0], newRect[1])
angle += 1 if play_b==stop_img:
angle+=1
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0,0)) # 填充背景 screen.blit(bg_img, (0,0)) # 填充背景
screen.blit(play_b, (270,350)) screen.blit(play_b, (270,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