Add positional sounds from the tilemap
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
{
|
{
|
||||||
"sound_key":"fountain"
|
"sound_key":"fountain"
|
||||||
},
|
},
|
||||||
"type":"",
|
"type":"Sounds",
|
||||||
"visible":true,
|
"visible":true,
|
||||||
"width":0,
|
"width":0,
|
||||||
"x":736,
|
"x":736,
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
"sound_nofade":"true",
|
"sound_nofade":"true",
|
||||||
"sound_volume":"0.5"
|
"sound_volume":"0.5"
|
||||||
},
|
},
|
||||||
"type":"",
|
"type":"Sounds",
|
||||||
"visible":true,
|
"visible":true,
|
||||||
"width":0,
|
"width":0,
|
||||||
"x":64,
|
"x":64,
|
||||||
|
|||||||
@@ -975,7 +975,7 @@ GameState.prototype.create = function()
|
|||||||
}, this)
|
}, this)
|
||||||
|
|
||||||
this.staticSounds = game.add.group();
|
this.staticSounds = game.add.group();
|
||||||
this.map.createFromObjects('Sounds', 11, 'player', 0, true, false, this.staticSounds, SoundSprite);
|
this.map.createFromObjects('Sounds', null, 'player', 0, true, false, this.staticSounds, SoundSprite);
|
||||||
this.staticSounds.forEach(function(snd) {
|
this.staticSounds.forEach(function(snd) {
|
||||||
snd.update_new_values();
|
snd.update_new_values();
|
||||||
}, this)
|
}, this)
|
||||||
|
|||||||
Reference in New Issue
Block a user