make npcs less annoying
This commit is contained in:
parent
7d83d31746
commit
276e11fb49
6 changed files with 45 additions and 30 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue