From 6883d5fbf99700161f54461383d6acf5409388c3 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Fri, 13 Jun 2014 22:46:40 -0700 Subject: [PATCH] Add positional sounds from the tilemap --- moonlight/js/moonlight-skulk.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 6df3365..70ef694 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -82,8 +82,6 @@ function SoundSprite(game, x, y, key, frame, this.max_edge_dist = new Phaser.Point(); this.max_edge_dist.x = game.camera.width / 2; this.max_edge_dist.y = game.camera.height / 2; - - this.sound = null; } @@ -104,6 +102,7 @@ SoundSprite.prototype.update_new_values = function() { this.sound_volume, this.sound_loop, this.sound_forcerestart); + console.log("Sound should be playing"); } SoundSprite.prototype.adjust_relative_to = function(spr) {