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

@ -13,7 +13,7 @@
var self = this;
this.options = options = Options.merge(options, {
levelUids: ["dungeon"]
levelUids: ["circles", "dungeon"]
});
this.name = name;

View file

@ -55,7 +55,7 @@ function (Parent, PhysicsEngine, Settings, PlayerController, requestAnimFrame, N
GameController.prototype.spawnPlayer = function(player) {
var x = 150 + Math.random() * 300,
y = 50;
y = 0;
player.spawn(x, y);
this.gameObjects.animated.push(player.getDoll());

View file

@ -0,0 +1,9 @@
define([
"Game/Core/Loader/TiledLevel"
],
function (Parent) {
return Parent;
});