mdiehr / Spielmatrix

A tile-based game engine for prototyping abstract games.
3 stars 0 forks source link

Feature/audio #21

Closed mdiehr closed 9 years ago

mdiehr commented 9 years ago

New API:

SM.play(soundName);

New options: audioPath (defaults to './sounds/') preloadSounds (defaults to undefined)

Supported sound names:

'Appear',
'Blip1',
'Blip2',
'Blip3',
'Blip4',
'Coin1',
'Coin2',
'Coin3',
'Explosion1',
'Explosion2',
'Explosion3',
'Export',
'Hit1',
'Hit2',
'Jump1',
'Jump2',
'Laser1',
'Laser2',
'Laser3',
'Modem',
'Powerup1',
'Powerup2',
'Powerup3',
'UhOh1',
'UhOh2',
'UhOh3',
'Yarp'