Making AI able to 'see' the player

This commit is contained in:
2014-06-14 16:28:47 -07:00
parent ca32c16ccc
commit c9fe7ec850

View File

@@ -1126,8 +1126,8 @@ GameState.prototype.update = function()
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.right, r.width,
r.bottom); r.height);
} }
this.aiSprites.forEach(_draw_viewrect, this); this.aiSprites.forEach(_draw_viewrect, this);