Making AI able to 'see' the player
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user