mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
first try of rendering chuck as a texture
This commit is contained in:
parent
86005c8b16
commit
1f55cdff2d
4 changed files with 38 additions and 11 deletions
|
|
@ -113,7 +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);
|
||||
this.viewController.setMainPlayer(this.me);
|
||||
}
|
||||
|
||||
GameController.prototype.onSpawnPlayer = function(options) {
|
||||
|
|
@ -123,6 +123,9 @@ function (Box2D, Parent, PhysicsEngine, ViewController, PlayerController, Notifi
|
|||
|
||||
var player = this.players[playerId];
|
||||
player.spawn(x, y);
|
||||
|
||||
// add to view controller
|
||||
this.viewController.addMovablePlayer(player);
|
||||
}
|
||||
|
||||
GameController.prototype.loadLevel = function (path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue