mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
implemented mouse looking
This commit is contained in:
parent
88d70f2549
commit
5f7917c5cc
9 changed files with 117 additions and 19 deletions
|
|
@ -29,6 +29,10 @@ define(function () {
|
|||
this.player.jump();
|
||||
}
|
||||
|
||||
PlayerController.prototype.lookAt = function (x, y) {
|
||||
this.player.lookAt(x, y);
|
||||
}
|
||||
|
||||
PlayerController.prototype.update = function () {
|
||||
//console.log(this._walkingDirectionStatus)
|
||||
if(this._walkingDirectionStatus != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue