Commit 15159c48 by BellCodeEditor

save project

parent bb45520f
Showing with 3 additions and 2 deletions
...@@ -54,7 +54,7 @@ while True: ...@@ -54,7 +54,7 @@ while True:
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
xuanzhuan+=1
if x>120 and x<220 and y >350 and y<400:# 上一首 if x>120 and x<220 and y >350 and y<400:# 上一首
number-=1 number-=1
if number<0: if number<0:
...@@ -79,7 +79,8 @@ while True: ...@@ -79,7 +79,8 @@ while True:
pygame.mixer.music.load(music_list[number]) pygame.mixer.music.load(music_list[number])
pygame.mixer.music.play()# 绘制画面 pygame.mixer.music.play()# 绘制画面
logodown_img = pygame.transform.rotate(logo_img,xuanzhuan) # 页面 logodown_img = pygame.transform.rotate(logo_img,xuanzhuan) # 页面
xuanzhuan+=1 if play_button == stop_img:
xuanzhuan+=1
newRect = logodown_img.get_rect(center=(320,200)) newRect = logodown_img.get_rect(center=(320,200))
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[1])
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
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