Parameterize torches

This commit is contained in:
Andrew Kesterson
2014-06-11 11:01:43 -07:00
parent 2ae2fa3906
commit b382c13449

View File

@@ -151,7 +151,8 @@ var Torch = function(game, x, y, radius, fade, color) {
// Set the pivot point for this sprite to the center // Set the pivot point for this sprite to the center
this.anchor.setTo(0.5, 0.5); this.anchor.setTo(0.5, 0.5);
this.color = color this.color = color;
this.radius = radius;
this.fade = radius * fade this.fade = radius * fade
}; };