mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Throwing with Swiper, working but needs to be refined. No angulat verlocity yet.
This commit is contained in:
parent
6d9d02615a
commit
cf2182676b
5 changed files with 198 additions and 85 deletions
|
|
@ -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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue