Compare commits

..

2 Commits

Author SHA1 Message Date
2deb001322 Removed comments
Muzzle flash will be done in animation,
BG music was done in commit a6a64cdf69
2025-06-24 14:46:44 +01:00
c155e11d87 Added motivational comment 2025-06-24 14:45:16 +01:00

View File

@ -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")