Compare commits
2 Commits
0a2305f4cc
...
2deb001322
| Author | SHA1 | Date | |
|---|---|---|---|
| 2deb001322 | |||
| c155e11d87 |
4
game.py
4
game.py
@ -20,8 +20,6 @@ class Game(gameUtils.Game):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# TODO: Utilise self.pm (the player manager)
|
||||
# TODO: Add background music
|
||||
# TODO: Add muzzle flash
|
||||
# TODO: Add animations for blank firing and real firing
|
||||
# TODO: Utilise the following new sounds:
|
||||
# gun-load: Should be played at the beginning of the game,
|
||||
@ -68,6 +66,8 @@ class Game(gameUtils.Game):
|
||||
|
||||
#Selects random music to play at the start of the game, might change because I just threw this together.
|
||||
#I feel horrible writing this code this feels super unoptimised :c
|
||||
# Bro I'm gonna be honest, there's not much I'd change about that, you're good.
|
||||
# The only thing I can think if just moving `set_volume()` to after both if statements.
|
||||
self.musicNumber = randint(1,2)
|
||||
if self.musicNumber == 1:
|
||||
pygame.mixer.music.load("./assets/surrounded.ogg")
|
||||
|
||||
Reference in New Issue
Block a user