Commit f1e58a29 by BellCodeEditor

save project

parent c5570f2f
Showing with 6 additions and 5 deletions
......@@ -4,6 +4,12 @@ from pygame import locals
pygame.init() # 初始化
# 创建窗口
screen = pygame.display.set_mode((640, 480))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if pygame.mixer.music.get_busy() == False:
pygame.mixec.musi.piay()
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
......@@ -12,11 +18,6 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲4.ogg')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
volume = 0.2
pygame.mixer.music.set_volume(volume)
......
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