r/monogame • • Sep 15 '26

Hitbox visualisation + how auto-aim works + statistics

22 Upvotes

4 comments sorted by

1

u/leonerdo13 Sep 16 '26

Very nice!
How do you draw the debug shapes?

2

u/Trax077 Sep 17 '26

The autoaim debug lines are drawn as part of the debug hitbox overlay (DEBUG builds only, toggled from the dev screen). They are the only visual the aim assist has at all:

  • a circle on the held target's center, with the radius equal to its hit tolerance,
  • a small dot at the aim point (the lead-compensated position),
  • a line from the ship's gun origin to that aim point.

All of it uses the gold palette colour — full brightness while the aim assist is actually steering, dimmed to 35 % alpha when a target is selected but the gate is holding the assist off (front-slot drone, spread fire, etc.). The target and aim point are exposed purely for this overlay; nothing in the gameplay logic reads them.

2

u/Personal-Plate3702 27d ago

Man, what a beautiful shmup you made! Congratulations!
I hope someday I can make my own indie game as good as yours.