Switch to Howler for audio

This commit is contained in:
asraelite 2018-03-07 12:21:43 +00:00
parent 3eb74e44aa
commit 194c0bf846
13 changed files with 78 additions and 19 deletions

View file

@ -38,6 +38,10 @@ export default class Entity extends Body {
return [this.x + this.width / 2, this.y + this.height / 2];
}
get localCom() {
return [this.width / 2, this.height / 2];
}
remove() {
entities.delete(this);
}