i am trying to make a 2D top-view shooter game… the enemies will have a “field of vision” / “field of sight” which will depict what they can and can’t see… its sort of like a projection in front of the enemies, and if the player hits that projection, it means that they’re being seen (im sure you all have seen it before in those 2D spy games)…
the projection / field-of-sight will also depend on where the enemy is facing… for example, if the enemy is facing a wall, the projection will only be until the wall…
is there any documentation / code on this? any links? articles?