Commit c5006228 by BellCodeEditor

save project

parent 6552a61f
Showing with 7 additions and 8 deletions
......@@ -26,17 +26,16 @@ while True:
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_UP:
oo += 0.1
if oo>1:
if event.type == locals.KEYDOWN:
if event.key == locals.K_UP:
oo += 0.1
if oo>1:
oo=1
pygame.mixer.music.set_volume(oo)
if event.key == locals.K_DOWN:
oo -= 0.1
if oo<0:
if event.key == locals.K_DOWN:
oo -= 0.1
if oo<0:
oo=0
pygame.mixer.music.set_volume(oo)
......
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