mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Repaired Collision detecteion by adding one detector for each user - fixes #15
This commit is contained in:
parent
a1e94e1ed0
commit
f07505bc20
9 changed files with 31 additions and 29 deletions
|
|
@ -158,12 +158,12 @@ function (Doll, Settings) {
|
|||
}
|
||||
this.setStanding(true);
|
||||
} else {
|
||||
// TODO This needs some more thought to it.
|
||||
// maybe take a look at collision groups for collision detection,
|
||||
// to group all tiles together
|
||||
// TODO This needs some more thought to it.
|
||||
// maybe take a look at collision groups for collision detection,
|
||||
// to group all tiles together
|
||||
|
||||
//this.setStanding(false);
|
||||
//this.animate('jumploop');
|
||||
//this.setStanding(false);
|
||||
//this.animate('jumploop');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ function (Doll, Settings) {
|
|||
this.stop();
|
||||
}
|
||||
|
||||
if (!this.doll.getBody().IsAwake()) {
|
||||
if (!this.doll.getBody().IsAwake() && !this.isStanding()) {
|
||||
this.setStanding(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue