line of sight and dead bodies


Enemies now have vision and will only shoot at you if there is not a wall in the way. This was simple to accomplish. A line is drawn from each enemy to the player, and if that line is overlapping a wall, then the enemy is told they do not have vision. Otherwise, if there is not a wall in between the enemy and the player, the enemy will shoot at a regular interval in the player's direction. 

Enemy line of sight visualized.

The basic gunman enemy also now has a body when they die that leaves a trail of blood, and a pool when their body comes to a resting position. 

Enemies dying.

Files

kill guy.zip 60 MB
Jun 06, 2022

Get kill guy

Leave a comment

Log in with itch.io to leave a comment.