mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
21 lines
No EOL
385 B
JavaScript
21 lines
No EOL
385 B
JavaScript
define([
|
|
"Game/Core/Player"
|
|
],
|
|
|
|
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;
|
|
|
|
}); |