Back at it after a hiatus due to work pileup.

This prototype builds on my locomotion work to implement a first draft of the police boat enemy. It has an intricate attack pattern:

  1. Hunt the player until they're not obscured by terrain
  2. Compute candidate attack positions behind the player
    1. Each point should have line of sight to the player and the police boat
  3. Pick random point from the candidates and accelerate towards it
  4. During the acceleration, spin around and spray the player with bullets in bursts while coasting

It's not all the way there yet -- the cop is much more erratic than it should be -- but I think it's close, just needs tweaking and tuning. The candidate points are visualized in pink.

Full thing here.