I dunno how to detect breaches

I’m assuming you read through this thread, where the best way to find breaches is the “breach” event. Here are a few ideas that could work for the most part (or at least be mostly accurate) that are a bit easier to manage:

  • If you’re already analyzing each action frame, track the last position of enemy units. If you lost health between turns, the last location is the breach location.
  • If you’re only analyzing the first action frame, you can store the enemy placements and in your regular logic run the pathfinder to get a fairly accurate representation of the path. Once again, if you lost health, the breach should be the last location.
  • A less accurate way (but probably just as good) is to get your damaged/destroyed turrets between two rounds (store game states in the regular logic, no action frame analysis needed). The center of those locations is probably a good location to build defenses and should be fairly aligned with the breach location (except when the enemy sends out scramblers).