Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
|
||||
# basic config
|
||||
|
||||
pygame.mixer.pre_init(48000, -16, 2, 512)
|
||||
pygame.init()
|
||||
pygame.mixer.set_num_channels(16)
|
||||
|
||||
|
||||
def get_sounds():
|
||||
sounds = {
|
||||
"click": pygame.mixer.Sound("assets/sounds/click.wav"),
|
||||
"collision": pygame.mixer.Sound("assets/sounds/collision.wav")
|
||||
}
|
||||
|
||||
return sounds
|
||||
Reference in New Issue
Block a user