mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed input controllerism - fixes #28
This commit is contained in:
parent
a59a258ad6
commit
f5eacb6335
13 changed files with 163 additions and 223 deletions
|
|
@ -3,19 +3,7 @@ define([
|
|||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
function Player(id, physicsEngine) {
|
||||
Parent.call(this, id, physicsEngine);
|
||||
|
||||
this.inputController = null;
|
||||
}
|
||||
|
||||
Player.prototype = Object.create(Parent.prototype);
|
||||
|
||||
Player.prototype.setInputController = function(inputController) {
|
||||
this.inputController = inputController;
|
||||
}
|
||||
|
||||
return Player;
|
||||
return Parent;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue