Commit e5ba1cf4 by BellCodeEditor

auto save

parent 31094ed3
......@@ -4,6 +4,7 @@ from pygame import locals
pygame.init() # 初始化
# 创建窗口
screen = pygame.display.set_mode((640, 480))
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
......@@ -11,7 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
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('') # 载入音乐
pygame.mixer.music.load('剑魂.mp3') # 载入音乐
while True:
for event in pygame.event.get():
......@@ -28,3 +29,11 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
'''
pygame.mixer.music.load('') # 载入音乐
pygame.mixer.music.play() # 播放
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
'''
\ No newline at end of file
File added
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