Commit 349ecdec by BellCodeEditor

save project

parent 091dbb48
Showing with 10 additions and 0 deletions
...@@ -12,10 +12,20 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -12,10 +12,20 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
pygame.mixer.music.set_vloume(vloume)
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 event.type==locals.KEYDOWN:
if event.key==locals.k_up:
vloume+=0.1
if vloume>1:
vloume=1
if event.key==locals.k_up:
vloume-=0.1
if vloume<0:
vloume=0
if pygame.mixer.music.get_busy==False: if pygame.mixer.music.get_busy==False:
pygame.mixer.music.play() pygame.mixer.music.play()
......
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