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
|
|
@ -13,7 +13,7 @@
|
|||
var self = this;
|
||||
|
||||
this.options = options = Options.merge(options, {
|
||||
levelUids: ["dungeon"]
|
||||
levelUids: ["circles", "dungeon"]
|
||||
});
|
||||
|
||||
this.name = name;
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
9
app/Game/Server/Loader/TiledLevel.js
Normal file
9
app/Game/Server/Loader/TiledLevel.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/Loader/TiledLevel"
|
||||
],
|
||||
|
||||
function (Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue