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