mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added joints
This commit is contained in:
parent
fa110ff4a8
commit
764220675b
10 changed files with 111 additions and 24 deletions
|
|
@ -33,8 +33,11 @@ define(function () {
|
|||
if(options) this.player.lookAt(options.x, options.y);
|
||||
}
|
||||
|
||||
PlayerController.prototype.handAction = function(options) {
|
||||
if (options) this.player.handAction(options.x, options.y);
|
||||
};
|
||||
|
||||
PlayerController.prototype.update = function () {
|
||||
//console.log(this._walkingDirectionStatus)
|
||||
if(this._walkingDirectionStatus != 0) {
|
||||
this.player.move(this._walkingDirectionStatus);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue