mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
new system for synchronizing game objects. fixes #74
This commit is contained in:
parent
3ef3a6abf9
commit
07dad646cf
19 changed files with 194 additions and 162 deletions
|
|
@ -98,6 +98,18 @@ function (Parent, Item, Box2D, Nc, Assert) {
|
|||
this.body.SetLinearVelocity(update.lv);
|
||||
}
|
||||
};
|
||||
|
||||
Doll.prototype.getUpdateData = function(getSleeping) {
|
||||
|
||||
var updateData = Parent.prototype.getUpdateData.call(this, getSleeping);
|
||||
|
||||
if(updateData) {
|
||||
updateData.as = this.getActionState();
|
||||
updateData.laxy = this.lookAtXY;
|
||||
}
|
||||
|
||||
return updateData;
|
||||
};
|
||||
|
||||
return Doll;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue