Commit 8879fd01 by BellCodeEditor

auto save

parent a739636e
Showing with 4 additions and 1 deletions
......@@ -12,11 +12,14 @@ 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('test.wav') #载入音乐(1.2)
while True:#已加载
for event in pygame.event.get(): #已加载
if event.type==locals.QUIT:
exit() #点击关闭按扭,程序结束(1.1)
if pygame.mixer.music.get_busy()==False: #(1.2)
pygame.mixer.music.play() #(1.2)
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 (已加载)
screen.blit(stop_img, (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