Commit 5e5452fc by BellCodeEditor

save project

parent 86938e52
Showing with 1300 additions and 3 deletions
...@@ -6,7 +6,1304 @@ from pygame import locals ...@@ -6,7 +6,1304 @@ from pygame import locals
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() if event.type==locals.KEYDOWN
if pygame.mixer.music.get()==False: volume += 0.1
pygame.mixer.music.play() if volume > 1:
volume =1
pygame.music.set_volume(volume)
if event .key==locals
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