From 14bf3f080b3423eaf59ed1cfbb93f788f50b0c64 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 12 Jun 2014 23:57:46 -0700 Subject: [PATCH] Reworking the junkmap --- moonlight/js/moonlight-skulk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 6644119..50f77f0 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -29,7 +29,7 @@ var game = new Phaser.Game(640, 480, Phaser.AUTO, ''); // Light constructor var Light = function(game, x, y, key, frame, radius, fade, color_start, color_stop, flicker) { color_start = ( typeof color_start == undefined ? color_start : 'rgba(255, 255, 255, 1.0)'); - color_stop = ( typeof color == undefined ? color_start : 'rgba(255, 255, 255, 0.0)'); + color_stop = ( typeof color_stop == undefined ? color_stop : 'rgba(255, 255, 255, 0.0)'); fade = ( typeof fade == undefined ? fade : 0.25); radius = ( typeof radius == undefined ? radius : 64); flicker = ( typeof flicker == undefined ? flicker : false); @@ -38,6 +38,7 @@ var Light = function(game, x, y, key, frame, radius, fade, color_start, color_st // Set the pivot point for this sprite to the center this.anchor.setTo(0.5, 0.5); + this.color_start = color_start; this.color_stop = color_stop; this.radius = radius;