From 2668f3a7349174a42b664b94f56aaf2c3966d4b1 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 12 Jun 2014 23:26:37 -0700 Subject: [PATCH] Reworking the junkmap --- moonlight/js/moonlight-skulk.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 6b89ab8..421a4ff 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -815,13 +815,11 @@ GameState.prototype.create = function() this.map_collision_layers.push(layer); } layer.resizeWorld(); - } else if ( lp['type'] == "objects" ) { - ogrp = game.add.group(); - console.log("this.map.createFromObjects(" + ln + ", "+ lp['gid'] +", null, 0, true, false, undefined, Light)"); - this.map.createFromObjects(ln, lp['gid'], null, 0, true, false, ogrp, lp['class']); } } + this.map.createFromObjects('Lights', 97, null, 0, true, false, this.staticLights, lp['class']); + player = this.add.sprite((3 * 32), (17 * 32), 'player'); this.physics.arcade.enable(player); player.body.center = new Phaser.Point(player.body.width / 2, player.body.height + player.body.halfHeight);