mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
cammera follows player
This commit is contained in:
parent
93857ced2d
commit
81fe7be743
3 changed files with 11 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue