Commit 50344763 by BellCodeEditor

save project

parent 25db0720
Showing with 5 additions and 0 deletions
...@@ -12,10 +12,15 @@ last_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/la ...@@ -12,10 +12,15 @@ last_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/la
next_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/next.png') # 下一曲按钮 next_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/next.png') # 下一曲按钮
logo_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/logo.png') # 中间logo logo_img = pygame.image.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/logo.png') # 中间logo
#载入音乐
pygame.mixer.music.load('/Users/zhangshuai/Documents/pygame_lesson04_diy/歌曲2.wav')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
# 绘制画面 # 绘制画面
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