From 1fa11e2300170d120bf8a3179f40dc361428d7a0 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 00:14:13 -0700 Subject: [PATCH] Add positional sounds from the tilemap --- moonlight/gfx/bigmap.json | 4 ++-- moonlight/js/moonlight-skulk.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moonlight/gfx/bigmap.json b/moonlight/gfx/bigmap.json index 890077f..7560b28 100644 --- a/moonlight/gfx/bigmap.json +++ b/moonlight/gfx/bigmap.json @@ -206,7 +206,7 @@ { "sound_key":"fountain" }, - "type":"", + "type":"Sounds", "visible":true, "width":0, "x":736, @@ -222,7 +222,7 @@ "sound_nofade":"true", "sound_volume":"0.5" }, - "type":"", + "type":"Sounds", "visible":true, "width":0, "x":64, diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 4a7d269..033fa75 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -975,7 +975,7 @@ GameState.prototype.create = function() }, this) 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) { snd.update_new_values(); }, this)