Commit 3395c012 by BellCodeEditor

save project

parent e2de97cd
Showing with 8 additions and 2 deletions
......@@ -19,10 +19,10 @@ path="C:\\Users\\多多\\Desktop\\test"
filelist=os.listdir(path)
for i in filelist:
if i[-4:]==".oog"or i[-4:]==".wav":
music_list.append()
music_list.append(i)
angle=0
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......@@ -63,6 +63,12 @@ while True:
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play()
new_logo=pygame.transform.rotate(logo_img,angle)
newrect=new_logo.get_rect(center=(320,200))
pos=(newrect[0],newrect[1])
if play_button==stop_img:
angle+=1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
......
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