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",
|
"Game/Core/GameController",
|
||||||
"Lib/Vendor/Box2D",
|
"Lib/Vendor/Box2D",
|
||||||
"Game/Client/Physics/Engine",
|
"Game/Client/Physics/Engine",
|
||||||
"Game/Client/View/ViewController",
|
"Game/Client/View/ViewManager",
|
||||||
"Game/Client/Control/PlayerController",
|
"Game/Client/Control/PlayerController",
|
||||||
"Game/Core/NotificationCenter",
|
"Game/Core/NotificationCenter",
|
||||||
"Lib/Utilities/RequestAnimFrame",
|
"Lib/Utilities/RequestAnimFrame",
|
||||||
|
|
@ -10,15 +10,13 @@ define([
|
||||||
"Lib/Vendor/Stats"
|
"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 () {
|
function GameController () {
|
||||||
|
this.viewController = ViewManager.prototype.createView();
|
||||||
|
|
||||||
Parent.call(this, new PhysicsEngine());
|
Parent.call(this, new PhysicsEngine());
|
||||||
|
|
||||||
this.viewController = new ViewController();
|
|
||||||
|
|
||||||
this.physicsEngine.setCollisionDetector();
|
this.physicsEngine.setCollisionDetector();
|
||||||
|
|
||||||
this.me = null;
|
this.me = null;
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@ define({
|
||||||
GRAPHICS_SUBPATH_CHARACTERS: 'characters/',
|
GRAPHICS_SUBPATH_CHARACTERS: 'characters/',
|
||||||
|
|
||||||
RATIO: 35,
|
RATIO: 35,
|
||||||
TILE_SIZE: 40, //15
|
TILE_SIZE: 15, //15
|
||||||
CAMERA_IS_ORTHOGRAPHIC: true,
|
CAMERA_IS_ORTHOGRAPHIC: true,
|
||||||
|
VIEW_CONTROLLER: 1 ? 'Three' : 'Pixi',
|
||||||
|
|
||||||
// GAME PLAY
|
// GAME PLAY
|
||||||
WALK_SPEED: 2.5,
|
WALK_SPEED: 2.5,
|
||||||
|
|
|
||||||
3
app/Lib/Vendor/Pixi.js
vendored
Normal file
3
app/Lib/Vendor/Pixi.js
vendored
Normal 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
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
15
app/Lib/Vendor/Pixi/pixi.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue