Add positional sounds from the tilemap
This commit is contained in:
@@ -135,7 +135,7 @@ SoundSprite.prototype.adjust_relative_to = function(spr) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sound.volume = Math.min(1.0, Number(hyp_perfect / hyp));
|
this.sound.volume = Math.min(1.0, Number(hyp / hyp_perfect));
|
||||||
console.log([hyp_perfect, hyp, this.sound.volume]);
|
console.log([hyp_perfect, hyp, this.sound.volume]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user