from pygame import mixer class Sound: def __init__(self): # self.music_channel = mixer.Channel(0) # self.music_channel.set_volume(0.2) # self.sfx_channel = mixer.Channel(1) # self.sfx_channel.set_volume(0.2) # self.allowSFX = True # self.soundtrack = mixer.Sound("game/supermario/sfx/main_theme.ogg") # self.coin = mixer.Sound("game/supermario/sfx/coin.ogg") # self.bump = mixer.Sound("game/supermario/sfx/bump.ogg") # self.stomp = mixer.Sound("game/supermario/sfx/stomp.ogg") # self.jump = mixer.Sound("game/supermario/sfx/small_jump.ogg") # self.death = mixer.Sound("game/supermario/sfx/death.wav") # self.kick = mixer.Sound("game/supermario/sfx/kick.ogg") # self.brick_bump = mixer.Sound("game/supermario/sfx/brick-bump.ogg") # self.powerup = mixer.Sound('game/supermario/sfx/powerup.ogg') # self.powerup_appear = mixer.Sound('game/supermario/sfx/powerup_appears.ogg') # self.pipe = mixer.Sound('game/supermario/sfx/pipe.ogg') pass def play_sfx(self, sfx): # if self.allowSFX: # self.sfx_channel.play(sfx) pass def play_music(self, music): # self.music_channel.play(music) pass