|
|
|
@ -13,9 +13,7 @@ function SoundManager( gameState ){
@@ -13,9 +13,7 @@ function SoundManager( gameState ){
|
|
|
|
|
|
|
|
|
|
// Register all sounds loaded in gameState
|
|
|
|
|
createjs.Sound.registerSound("res/sound/turkey_in_the_straw.mp3", "TitleMusic"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/Store/supermarket.mp3", "MarketBackgroundSound"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/Store/Waterford.mp3", "MarketMusic"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/GUI/pop.mp3", "Pop"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/GUI/lowclick.mp3", "LowClick"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/GUI/click.mp3", "Click"); |
|
|
|
|
createjs.Sound.registerSound("res/sound/GUI/buzz.mp3", "Error"); |
|
|
|
@ -43,7 +41,7 @@ function SoundManager( gameState ){
@@ -43,7 +41,7 @@ function SoundManager( gameState ){
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
this.play = function( soundName ){ |
|
|
|
|
var channel = createjs.Sound.createInstance("Pop"); |
|
|
|
|
var channel = createjs.Sound.createInstance("Click"); |
|
|
|
|
if( typeof soundName != "object" ){ |
|
|
|
|
|
|
|
|
|
channel = ( soundCache[soundName] ? soundCache[soundName] : soundCache[soundName] = createjs.Sound.createInstance(soundName) ); |
|
|
|
|