Commit 528fa392 by BellCodeEditor

save project

parent c46c5722
Showing with 6 additions and 0 deletions
......@@ -16,6 +16,8 @@ m=0.2
pygame.mixer.music.set_volume(m)
sb=0
cnm=play_img
nmd=["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
num=-1
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -44,6 +46,10 @@ while True:
pygame.mixer.music.pause()
cnm=stop_img
if pygame.mixer.music.get_busy()==False:
num+=1
if num==len(nmd):
num=0
pygame.mixer.music.load(nmd[num])
pygame.mixer.music.play()
# 绘制画面
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