mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
removed collisionDetector for every player again, because box2d can only have one - userData solution instead
This commit is contained in:
parent
f07505bc20
commit
a59a258ad6
5 changed files with 21 additions and 18 deletions
|
|
@ -19,7 +19,7 @@ function (Doll, Settings) {
|
|||
}
|
||||
|
||||
Player.prototype.spawn = function (x, y) {
|
||||
this.doll = new Doll(this.physicsEngine, this.id);
|
||||
this.doll = new Doll(this.physicsEngine, this);
|
||||
this.doll.spawn(x, y);
|
||||
this.isSpawned = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue