Commit cd1004be by BellCodeEditor

save project

parent ff83da5c
Showing with 11 additions and 0 deletions
...@@ -13,7 +13,18 @@ next_img = pygame.image.load('next.png') # 下一曲按钮 ...@@ -13,7 +13,18 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲3.wav') pygame.mixer.music.load('歌曲3.wav')
if event.type==locals.KEYDOWN:
if event.key==locals.K_w:
volum+=0.1
play_music.set_(volum)
if volum>1:
volum=1
pygame.mixer.music.set_volum(volum)
if event_key==locals.K.s
volum=0.1
if volum<0
volum<1
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:
......
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