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.fillRect(r.left,
r.top,
r.right,
r.bottom);
r.width,
r.height);
}
this.aiSprites.forEach(_draw_viewrect, this);