mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added tiled level support
This commit is contained in:
parent
83e78a5732
commit
3782fa345b
13 changed files with 113 additions and 39 deletions
|
|
@ -1,10 +1,10 @@
|
|||
define([
|
||||
"Game/" + GLOBALS.context + "/Physics/Engine",
|
||||
"Game/" + GLOBALS.context + "/Loader/Level",
|
||||
"Game/" + GLOBALS.context + "/Loader/TiledLevel",
|
||||
"Game/" + GLOBALS.context + "/Player"
|
||||
],
|
||||
|
||||
function (PhysicsEngine, Level, Player) {
|
||||
function (PhysicsEngine, TiledLevel, Player) {
|
||||
|
||||
function GameController () {
|
||||
this.players = {};
|
||||
|
|
@ -37,7 +37,7 @@ function (PhysicsEngine, Level, Player) {
|
|||
};
|
||||
}
|
||||
|
||||
this.level = new Level(levelUid, this.physicsEngine, this.gameObjects);
|
||||
this.level = new TiledLevel(levelUid, this.physicsEngine, this.gameObjects);
|
||||
}
|
||||
|
||||
GameController.prototype.onResetLevel = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue