Switch to Howler for audio
This commit is contained in:
parent
3eb74e44aa
commit
194c0bf846
13 changed files with 78 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue