Skip to content

Commit

Permalink
[style] added sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
고서온 authored and 고서온 committed Jun 27, 2024
1 parent 5911f1b commit 6ecf768
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
SOUNDS = []

class Sound:
def __init__(self, LINK):
self.SOUND = pygame.mixer.Sound(LINK)
def __init__(self, PATH):
self.PATH = PATH
self.SOUND = pygame.mixer.Sound(self.PATH)
SOUNDS.append(self.SOUND)

def play(self, LOOPS=0):
Expand All @@ -18,6 +19,8 @@ def stop(self):
def set_volume(self, VOLUME):
self.SOUND.set_volume(VOLUME)

SAVE_ITEM_SFX = Sound('sounds/Lethal sounds/Sound ship/CollectScrapSmall-sharedassets3.assets-1124.wav')

MAIN_MUSIC_1 = Sound('sounds/013. Ambient Music1.mp3')
MAIN_MUSIC_2 = Sound('sounds/014. Ambient Music2.mp3')
LOBBY_MUSIC_3 = Sound('sounds/088. Breaker Box Hum.mp3')
Expand Down

0 comments on commit 6ecf768

Please sign in to comment.