- Added level musix
parent
ce515a898d
commit
f0d6fe8784
3
game.py
3
game.py
|
@ -52,7 +52,7 @@ class TheGame:
|
||||||
pygame.mixer.music.load("""audio/level1.wav""")
|
pygame.mixer.music.load("""audio/level1.wav""")
|
||||||
elif lvl == 2:
|
elif lvl == 2:
|
||||||
pygame.mixer.music.load("""audio/level2.wav""")
|
pygame.mixer.music.load("""audio/level2.wav""")
|
||||||
elif lvl == 3:
|
elif lvl >= 3:
|
||||||
pygame.mixer.music.load("""audio/level3.wav""")
|
pygame.mixer.music.load("""audio/level3.wav""")
|
||||||
pygame.mixer.music.play()
|
pygame.mixer.music.play()
|
||||||
|
|
||||||
|
@ -119,6 +119,7 @@ class TheGame:
|
||||||
timeleft = time
|
timeleft = time
|
||||||
avocados = []
|
avocados = []
|
||||||
print('DEBUG :: Level ' + str(level))
|
print('DEBUG :: Level ' + str(level))
|
||||||
|
game.playLevel(level)
|
||||||
|
|
||||||
# Let's add the lawyer
|
# Let's add the lawyer
|
||||||
fullegast.blitme()
|
fullegast.blitme()
|
||||||
|
|
Loading…
Reference in New Issue