Throwing with Swiper, working but needs to be refined. No angulat verlocity yet.

This commit is contained in:
Jeena 2014-12-07 00:57:05 +01:00
parent 6d9d02615a
commit cf2182676b
5 changed files with 198 additions and 85 deletions

View file

@ -13,9 +13,6 @@ function (Parent, Nc, KeyboardAndMouse, Gamepad) {
this.keyboardAndMouse = new KeyboardAndMouse(this);
this.gamepad = new Gamepad(this);
this.ncTokens = [
];
}
PlayerController.prototype = Object.create(Parent.prototype);
@ -23,7 +20,6 @@ function (Parent, Nc, KeyboardAndMouse, Gamepad) {
PlayerController.prototype.update = function() {
Parent.prototype.update.call(this);
this.gamepad.update();
this.keyboardAndMouse.update();
};
PlayerController.prototype.moveLeft = function () {
@ -93,12 +89,7 @@ function (Parent, Nc, KeyboardAndMouse, Gamepad) {
PlayerController.prototype.zoomReset = function() {
Nc.trigger(Nc.ns.client.game.zoomReset, false);
};
PlayerController.prototype.destroy = function() {
Nc.offAll(this.ncTokens);
Parent.prototype.destroy.call(this);
};
return PlayerController;
});