cammera follows player

This commit is contained in:
Jeena 2013-11-30 12:57:40 +01:00
parent 93857ced2d
commit 81fe7be743
3 changed files with 11 additions and 2 deletions

View file

@ -113,6 +113,7 @@ function (Box2D, Parent, PhysicsEngine, ViewController, PlayerController, Notifi
//this.onSpawnPlayer(options);
this.me = this.players[playerId];
this.me.setPlayerController(new PlayerController(this.me));
this.viewController.setPlayer(this.me);
}
GameController.prototype.onSpawnPlayer = function(options) {