More map work

This commit is contained in:
2014-06-15 18:48:18 -07:00
parent 09091e839f
commit cd336c33a4
2 changed files with 3 additions and 3 deletions

View File

@@ -223,7 +223,7 @@
"color_stop":"rgba(246, 152, 62, 0.0)", "color_stop":"rgba(246, 152, 62, 0.0)",
"fade":"0.15", "fade":"0.15",
"flicker":"true", "flicker":"true",
"light_meter":"1.5", "light_meter":"0.75",
"radius":"128" "radius":"128"
}, },
"type":"Lights", "type":"Lights",
@@ -242,7 +242,7 @@
"color_stop":"rgba(246, 152, 62, 0.0)", "color_stop":"rgba(246, 152, 62, 0.0)",
"fade":"0.15", "fade":"0.15",
"flicker":"true", "flicker":"true",
"light_meter":"1.5", "light_meter":"0.75",
"radius":"128" "radius":"128"
}, },
"type":"Lights", "type":"Lights",

View File

@@ -1290,7 +1290,7 @@ GameState.prototype.update_player_lightmeter = function() {
if ( line.length > light.rendered_radius) if ( line.length > light.rendered_radius)
return; return;
var length = line.length; var length = line.length;
var lv = ((Number(length) * light.light_meter) / Number(light.rendered_radius)); var lv = light.light_meter - (Number(length) / Number(light.rendered_radius));
if ( lv > lightValue ) { if ( lv > lightValue ) {
lightValue = lv; lightValue = lv;
} }