From b382c13449a41e3d0a164efd8cf4ae66305f8dd9 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 11 Jun 2014 11:01:43 -0700 Subject: [PATCH] Parameterize torches --- 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 6e710e4..239786b 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -151,7 +151,8 @@ var Torch = function(game, x, y, radius, fade, color) { // Set the pivot point for this sprite to the center this.anchor.setTo(0.5, 0.5); - this.color = color + this.color = color; + this.radius = radius; this.fade = radius * fade };