Draw a held-key world overlay of targets through the drawn camera (#132)
build / mod (push) Failing after 59s

Holding C draws square markers over the targets the player can see, each
with the class the radars estimated and the distance; an unidentified
track stays a "?", never the target's type. Stale forecast tracks fade
orange and say their age, the player's own interceptors wear small yellow
squares, and the sandbox truth mode adds white markers of the real drones
apart from the network's estimates. Letting the key go clears the HUD.

The markers project through the camera of the last drawn frame
(render.project, API 31), so they sit on the world as it is drawn and
follow the view frame by frame; the overlay stays off under a replay, the
grid J, the monitor K and the map M, which own the screen themselves. A
full raid stays inside the HUD's 1024-shape budget, keeping the nearest
markers and counting the rest behind the camera or past the edges.

Bump the engine pin to 2bcce6423 (API 31, render.project) and name API 31
in the capabilities diagnostic to match.

Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
2026-11-21 00:35:15 +03:00
parent 795b1b2fcf
commit a983177d34
8 changed files with 382 additions and 6 deletions
+8
View File
@@ -1114,6 +1114,14 @@ impl Missile {
}
}
#[cfg(any(test, feature = "test-fixtures"))]
impl Missile {
/// A missile in flight for the screens' tests: command guidance, no seeker fix.
pub fn test_at(id: u32, pos: DVec3, target: u32) -> Missile {
Missile { id, kind: MissileKind::Pac3, pos, vel: DVec3::Z, target, sam: 0, age: 20, hold: 0, fix: None, seen: 0 }
}
}
impl MissileKind {
/// How far its own seeker holds a target of average size (blocks); 0: command guidance only.
pub fn seeker(self) -> f64 {