mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Added spawning gameCommand logic
This commit is contained in:
parent
371592f167
commit
fb5de522e5
8 changed files with 84 additions and 59 deletions
21
app/Game/Server/Player.js
Normal file
21
app/Game/Server/Player.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue