added pixi view controller - prepared architecture for multiple view systems - e.g. three, ivank, pixi but havent implemented any new ones yet

This commit is contained in:
logsol 2013-12-16 03:11:24 +01:00
parent f2fb716689
commit 3d1e729650
5 changed files with 10380 additions and 6 deletions

View file

@ -2,7 +2,7 @@ define([
"Game/Core/GameController",
"Lib/Vendor/Box2D",
"Game/Client/Physics/Engine",
"Game/Client/View/ViewController",
"Game/Client/View/ViewManager",
"Game/Client/Control/PlayerController",
"Game/Core/NotificationCenter",
"Lib/Utilities/RequestAnimFrame",
@ -10,15 +10,13 @@ define([
"Lib/Vendor/Stats"
],
function (Parent, Box2D, PhysicsEngine, ViewController, PlayerController, NotificationCenter, requestAnimFrame, Settings, Stats) {
function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, NotificationCenter, requestAnimFrame, Settings, Stats) {
function GameController () {
this.viewController = ViewManager.prototype.createView();
Parent.call(this, new PhysicsEngine());
this.viewController = new ViewController();
this.physicsEngine.setCollisionDetector();
this.me = null;