Commit 1b04499e by BellCodeEditor

save project

parent b55a2873
Showing with 12 additions and 6 deletions
......@@ -4,9 +4,15 @@ pygame.mixer.music.load("music3.wav")
pygame.mixer.music.load("music4.ogg")
if pygame.mixer.music.get_busy() == false:
pygame.mixer.music.play( )
volume = 0.5
pygame.mixer.music.set_volume(volume)
if volume > 1:
volume = 1
if volume < 0:
volume = 0
volume = 1
if event.type == locals.KEY_DOWN:
if event.type == locals.K_UP:
volume += o.1
pygame.mixer.music.set_volume(volume)
if volume > 1:
volume = 1
if event.type == locals.K_DOWN:
volume -= o.1
pygame.mixer.music.set_volume(volume)
if volume < 0:
volume = 0
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