Reformatted to adhere to PEP8
This commit is contained in:
parent
dfe7a75eea
commit
c9f2703e9f
1 changed files with 6 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
import pygame
|
||||
from pygame import mixer
|
||||
|
||||
class SoundAndMusic:
|
||||
|
||||
class SoundAndMusic:
|
||||
laser_sound = 0
|
||||
explosion_sound = 0
|
||||
change_level_sound = 0
|
||||
|
@ -59,7 +59,6 @@ class SoundAndMusic:
|
|||
SoundAndMusic.game_won_sound = mixer.Sound('sounds/game_won_sound.wav')
|
||||
SoundAndMusic.game_won_sound.set_volume(SoundAndMusic.sfx_volume / 100)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def play_laser_sound():
|
||||
SoundAndMusic.laser_sound.play()
|
||||
|
@ -103,8 +102,3 @@ class SoundAndMusic:
|
|||
SoundAndMusic.music_volume = 0
|
||||
mixer.music.set_volume(SoundAndMusic.music_volume / 100)
|
||||
print(SoundAndMusic.music_volume)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue