make npcs less annoying

This commit is contained in:
biglyderv 2024-11-25 14:14:21 -05:00
parent 7d83d31746
commit 276e11fb49
6 changed files with 45 additions and 30 deletions

View file

@ -175,6 +175,7 @@ class Game extends GameBasic {
}
x.handleTick = type.prototype.handleTick;
x.bounce = type.prototype.bounce;
if (x.r != 1 && type == Player) {
let a = new Audio(`sfx/${emojis[x.r]}.wav`);
a.addEventListener('ended', () => {