From 95b2a39492cc00e834975ed3ec26ffcf80ce98d1 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 00:16:17 -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 7560b28..53c99e5 100644 --- a/moonlight/gfx/bigmap.json +++ b/moonlight/gfx/bigmap.json @@ -213,7 +213,7 @@ "y":865 }, { - "gid":17, + "gid":11, "height":0, "name":"backgroundmusic", "properties": @@ -515,4 +515,4 @@ "tilewidth":32, "version":1, "width":100 -} \ No newline at end of file +} diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 033fa75..4a7d269 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', null, 'player', 0, true, false, this.staticSounds, SoundSprite); + this.map.createFromObjects('Sounds', 11, 'player', 0, true, false, this.staticSounds, SoundSprite); this.staticSounds.forEach(function(snd) { snd.update_new_values(); }, this)