TheWizardsCode / RogueWave

A prototype Roguelite FPS Wave Shooter using Unity and Neo FPS. See https://www.youtube.com/playlist?list=PL6pqvWkvTOzQBZXEaxjusqowZ2SnORopA
MIT License
3 stars 4 forks source link

Improve enemy obstacle avoidance #86

Open SorraTheOrc opened 1 month ago

SorraTheOrc commented 1 month ago

Update: Item 2 has been done and this seems to have improved enemy behaviour a little. Moving back to backlog while we establish how much of the other items remain.

  1. Enemies still occasionally passing through buildings

Most commonly it is the stingers, but also seen Saucers and Shielded Core doing it.

  1. The enemies stutter when avoiding a wall. It goes like this:Most easily reproduced with a Shielded Core trying to get down an alley

What we need to do is flag when we are avoiding an obstacle on the right/left and test for it, only going back to the original path once we are past the obstacle:

SorraTheOrc commented 1 month ago

In order to test for the second item (narrow passageways) we need to:

-[x] build a test level that will force the enemies down an ally see `Assets/_Dev/Resources/Levels/Specific Scenario Levels/Level 3x2 Narrow Passageway.asset -[x] adjust avoidance logic to prevent oscillation in the passageway