RaycasterTest/sound.py
2023-01-28 15:05:50 +00:00

11 lines
No EOL
309 B
Python

import pygame as pg
class Sound:
def __init__(self, game):
self.game = game
pg.mixer.init()
self.path = 'resources/sounds/'
#self.sound_type = pg.mixer.Sound(self.path + 'sound_type.extention')
# Then to call the sound use
# self.sound_type.play()