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;

View file

@ -16,8 +16,9 @@ define({
GRAPHICS_SUBPATH_CHARACTERS: 'characters/',
RATIO: 35,
TILE_SIZE: 40, //15
TILE_SIZE: 15, //15
CAMERA_IS_ORTHOGRAPHIC: true,
VIEW_CONTROLLER: 1 ? 'Three' : 'Pixi',
// GAME PLAY
WALK_SPEED: 2.5,

3
app/Lib/Vendor/Pixi.js vendored Normal file
View file

@ -0,0 +1,3 @@
define(["Lib/Vendor/Pixi/pixi.dev"], function() {
return PIXI;
})

10357
app/Lib/Vendor/Pixi/pixi.dev.js vendored Normal file

File diff suppressed because it is too large Load diff

15
app/Lib/Vendor/Pixi/pixi.js vendored Normal file

File diff suppressed because one or more lines are too long