Increase view size when alerted, go concerned instead of alerted when player is below the light threshold but within view
This commit is contained in:
@@ -1311,17 +1311,17 @@ GameState.prototype.update = function()
|
|||||||
this.aiSprites.forEach(_inner_collide, this);
|
this.aiSprites.forEach(_inner_collide, this);
|
||||||
this.updateShadowTexture();
|
this.updateShadowTexture();
|
||||||
|
|
||||||
function _draw_viewrect(x) {
|
// function _draw_viewrect(x) {
|
||||||
var r = x.viewRectangle();
|
// var r = x.viewRectangle();
|
||||||
if ( r == null )
|
// if ( r == null )
|
||||||
return;
|
// return;
|
||||||
this.shadowTexture.context.fillStyle = 'rgb(128, 128, 128)';
|
// this.shadowTexture.context.fillStyle = 'rgb(128, 128, 128)';
|
||||||
this.shadowTexture.context.fillRect(r.left,
|
// this.shadowTexture.context.fillRect(r.left,
|
||||||
r.top,
|
// r.top,
|
||||||
r.width,
|
// r.width,
|
||||||
r.height);
|
// r.height);
|
||||||
}
|
// }
|
||||||
this.aiSprites.forEach(_draw_viewrect, this);
|
// this.aiSprites.forEach(_draw_viewrect, this);
|
||||||
|
|
||||||
if (game.time.fps !== 0) {
|
if (game.time.fps !== 0) {
|
||||||
this.fpsText.setText(game.time.fps + ' FPS');
|
this.fpsText.setText(game.time.fps + ' FPS');
|
||||||
|
|||||||
Reference in New Issue
Block a user