line of sight and dead bodies
kill guy » Devlog
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.
Files
kill guy.zip 60 MB
Jun 06, 2022
Get kill guy
kill guy
you are a guy. time to kill.
Status | Prototype |
Author | the42ndturtle |
Genre | Action |
Tags | Roguelike, Singleplayer, Twin Stick Shooter |
More posts
- power ups and enemy aiJun 08, 2022
- enemy pathfindingJun 06, 2022
Leave a comment
Log in with itch.io to leave a comment.