mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
improved the view management
This commit is contained in:
parent
3d1e729650
commit
067114eaf5
8 changed files with 174 additions and 211 deletions
|
|
@ -13,10 +13,10 @@ define([
|
|||
function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, NotificationCenter, requestAnimFrame, Settings, Stats) {
|
||||
|
||||
function GameController () {
|
||||
this.viewController = ViewManager.prototype.createView();
|
||||
|
||||
this.viewController = ViewManager.createView();
|
||||
|
||||
Parent.call(this, new PhysicsEngine());
|
||||
|
||||
|
||||
this.physicsEngine.setCollisionDetector();
|
||||
|
||||
this.me = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue