implemented mouse looking

This commit is contained in:
logsol 2013-12-12 18:42:27 +01:00
parent 88d70f2549
commit 5f7917c5cc
9 changed files with 117 additions and 19 deletions

View file

@ -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) {