added tiled level support

This commit is contained in:
logsol 2014-02-03 14:08:45 +01:00
parent 83e78a5732
commit 3782fa345b
13 changed files with 113 additions and 39 deletions

View file

@ -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() {