make the default shot automatically aim for the closest target in the input direction to make aiming easier. shot should go further #89
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Done in
5f36150, live at https://metaheavens.de/spaceship/A shot fired roughly toward an enemy now bends onto it. 28 degrees of cone - wide enough that pointing at something hits it, narrow enough that the shot still visibly goes where you pointed. Past about 45 the gun starts picking its own targets, which is the behaviour #80 deliberately removed.
Enemies only, never asteroids. Snapping onto a rock while you are trying to hit the thing shooting at you would be the assist working against you - and rocks are large and stationary enough to hit on purpose.
The aim guide is drawn through the same helper the gun fires through, so the dotted line bends with the shot. A guide showing the raw stick heading while the bolt took an assisted one would be the same class of mismatch #86 removed between the guide's length and a bolt's actual reach - and this one would have been harder to spot, because the line would look right most of the time.
Range 620 -> 950, the other half of the ticket.
test_aim_assistcovers all of it: picked up at 18 degrees, ignored at 55, nearest-in-cone wins, asteroids never chosen, and the guide following the assist.