Commit 85d2c9a8 by BellCodeEditor

save project

parent cb1c27e1
Showing with 12 additions and 7 deletions
...@@ -50,6 +50,11 @@ while True: ...@@ -50,6 +50,11 @@ while True:
if click % 2 == 0: if click % 2 == 0:
play_button = stop_img play_button = stop_img
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
new_logo=pygame.transform.rotate(logo_img,a)
a=a+1
pos=[]
pos=new_logo.get_rect(center=(320,200))
pos1=pos[0:2]
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
...@@ -57,8 +62,8 @@ while True: ...@@ -57,8 +62,8 @@ while True:
num += 1 num += 1
if num > len(music_list) - 1: if num > len(music_list) - 1:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])#加载
pygame.mixer.music.play() pygame.mixer.music.play()#播放
play_button = stop_img play_button = stop_img
if click % 2 == 0: if click % 2 == 0:
click += 2 click += 2
...@@ -86,11 +91,11 @@ while True: ...@@ -86,11 +91,11 @@ while True:
# 绘制画面 # 绘制画面
new_logo=pygame.transform.rotate(logo_img,a) # new_logo=pygame.transform.rotate(logo_img,a)
a=a+1 # a=a+1
pos=[] # pos=[]
pos=new_logo.get_rect(center=(320,200)) # pos=new_logo.get_rect(center=(320,200))
pos1=pos[0:2] # pos1=pos[0:2]
......
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