Run Forest Run….

Initial prototype for single AI flee behavior is in. The deer will switch directions randomly at a given interval. The speed it switches direction will also vary depending on the players distance. Unfortunately I haven’t had to time to base its directional change on the players location.

I’m probably going to have to back out most of the code that enable this (not that much) and switch it for a vector based solution.  Currently it’s all based on angles which seems to work ok solely by itself but I’m doubting it will work in conjunction with the  current flocking AI and object avoidance AI I’m hoping to do next.  For now it gives me an idea of how it feels.  Still lots to do no matter what implementation I go with to get it to feel more natural, and of course try and nail down the ever elusive “fun factor”.