Add positional sounds from the tilemap

This commit is contained in:
2014-06-13 23:36:06 -07:00
parent 982f45b5bd
commit 53b89b8e18

View File

@@ -128,7 +128,7 @@ SoundSprite.prototype.adjust_relative_to = function(spr) {
((game.camera.width/2) * (game.camera.width/2)) +
((game.camera.height/2) * (game.camera.height/2))
);
this.sound.volume = Number(hyp_perfect / hyp);
this.sound.volume = Number(hyp / hyp_perfect);
console.log([hyp_perfect, hyp, this.sound.volume]);
}