mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added ragdoll with one limb
This commit is contained in:
parent
b55f6d58fc
commit
e488beb203
18 changed files with 511 additions and 132 deletions
|
|
@ -67,15 +67,15 @@ function (Doll, Settings, NotificationCenter) {
|
|||
|
||||
Player.prototype.grab = function(item) {
|
||||
if(!this.isSpawned) return false;
|
||||
item.beingGrabbed(this);
|
||||
this.doll.grab(item);
|
||||
item.beingGrabbed(this);
|
||||
this.holdingItem = item;
|
||||
};
|
||||
|
||||
Player.prototype.throw = function(x, y, item) {
|
||||
if(!this.isSpawned) return false;
|
||||
item.beingReleased(this);
|
||||
this.doll.throw(item, x, y);
|
||||
item.beingReleased(this);
|
||||
this.holdingItem = null;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue