Commit d1ba984f by BellCodeEditor

save project

parent e9f068c6
Showing with 5 additions and 1 deletions
...@@ -14,7 +14,8 @@ logo_img = pygame.image.load('logo.png') # 中间logo ...@@ -14,7 +14,8 @@ logo_img = pygame.image.load('logo.png') # 中间logo
pygame,eixermosic,load('歌曲4.ogg') pygame,eixermosic,load('歌曲4.ogg')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
pygame.mixer.music.load()
pygame.mixer.music.play()
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
...@@ -26,6 +27,9 @@ while True: ...@@ -26,6 +27,9 @@ while True:
#!/usr/bin/python #!/usr/bin/python
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
#pygame.mixer.music.load()
#pygame.mixer.music.play()
if pygame.mixer.music.
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