Reformatted to adhere to PEP8

This commit is contained in:
ben 2022-07-28 13:06:04 -05:00
parent dfe7a75eea
commit c9f2703e9f

View file

@ -1,8 +1,8 @@
import pygame import pygame
from pygame import mixer from pygame import mixer
class SoundAndMusic:
class SoundAndMusic:
laser_sound = 0 laser_sound = 0
explosion_sound = 0 explosion_sound = 0
change_level_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 = mixer.Sound('sounds/game_won_sound.wav')
SoundAndMusic.game_won_sound.set_volume(SoundAndMusic.sfx_volume / 100) SoundAndMusic.game_won_sound.set_volume(SoundAndMusic.sfx_volume / 100)
@staticmethod @staticmethod
def play_laser_sound(): def play_laser_sound():
SoundAndMusic.laser_sound.play() SoundAndMusic.laser_sound.play()
@ -103,8 +102,3 @@ class SoundAndMusic:
SoundAndMusic.music_volume = 0 SoundAndMusic.music_volume = 0
mixer.music.set_volume(SoundAndMusic.music_volume / 100) mixer.music.set_volume(SoundAndMusic.music_volume / 100)
print(SoundAndMusic.music_volume) print(SoundAndMusic.music_volume)