mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
This commit is contained in:
parent
502cf72a7e
commit
c87997c774
13 changed files with 134 additions and 27 deletions
|
|
@ -130,6 +130,10 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, reque
|
|||
};
|
||||
*/
|
||||
|
||||
GameController.prototype.onRemoveGameObject = function(options) {
|
||||
|
||||
};
|
||||
|
||||
GameController.prototype.updateGameObject = function (gameObject, gameObjectUpdate) {
|
||||
if(gameObject === this.me.doll) {
|
||||
this.me.setLastServerPositionState(gameObjectUpdate);
|
||||
|
|
@ -252,6 +256,17 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, reque
|
|||
Nc.trigger(Nc.ns.client.view.gameStats.toggle, show);
|
||||
};
|
||||
|
||||
GameController.prototype.beginRound = function() {
|
||||
if (this.me.getPlayerController()) {
|
||||
this.me.getPlayerController().setIsInBetweenGames(false);
|
||||
}
|
||||
};
|
||||
|
||||
GameController.prototype.endRound = function() {
|
||||
this.me.getPlayerController().setIsInBetweenGames(true);
|
||||
this.toggleGameStats(true);
|
||||
};
|
||||
|
||||
GameController.prototype.destroy = function() {
|
||||
|
||||
if (!window.cancelAnimationFrame) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue