Reworking the junkmap
This commit is contained in:
@@ -28,7 +28,7 @@ var game = new Phaser.Game(640, 480, Phaser.AUTO, '');
|
|||||||
// Create torch objects
|
// Create torch objects
|
||||||
// Light constructor
|
// Light constructor
|
||||||
var Light = function(game, x, y, key, frame, radius, fade, color, flicker) {
|
var Light = function(game, x, y, key, frame, radius, fade, color, flicker) {
|
||||||
console.log("Making a light : " + [x, y, key, frame, radius, face, color, flicker]);
|
console.log("Making a light : " + [x, y, key, frame, radius, fade, color, flicker]);
|
||||||
color = ( typeof color == undefined ? [255, 255, 255] : color );
|
color = ( typeof color == undefined ? [255, 255, 255] : color );
|
||||||
fade = ( typeof fade == undefined ? 0.25 : fade );
|
fade = ( typeof fade == undefined ? 0.25 : fade );
|
||||||
radius = ( typeof radius == undefined ? 64 : radius );
|
radius = ( typeof radius == undefined ? 64 : radius );
|
||||||
|
|||||||
Reference in New Issue
Block a user