mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
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:
parent
f2fb716689
commit
3d1e729650
5 changed files with 10380 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue