Making AI able to 'see' the player

This commit is contained in:
2014-06-14 16:17:57 -07:00
parent 11a104c516
commit 6821c10f9f

View File

@@ -1121,6 +1121,8 @@ GameState.prototype.update = function()
function _draw_viewrect(x) { function _draw_viewrect(x) {
var r = x.viewRectangle(); var r = x.viewRectangle();
if ( r == null )
continue;
this.shadowTexture.context.fillStyle = 'rgba(255, 255, 255)'; this.shadowTexture.context.fillStyle = 'rgba(255, 255, 255)';
this.shadowTexture.context.fillRect(r.left, this.shadowTexture.context.fillRect(r.left,
r.top, r.top,