New systems (IRIS-T, NASAMS, Buk, Tor, P1-SUN), air-defence network with long-range radars, logistics, move orders, EW, adaptive enemy, searchlights and flares; grid holds a kill in view
build / mod (push) Successful in 5m7s
build / mod (push) Successful in 5m7s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,9 +53,9 @@ const PICTURE: (u32, u32) = (320, 200);
|
||||
/// target fills a good part of the picture; else ahead and a little up.
|
||||
pub fn camera(sim: &Sim, sam: &Sam) -> CameraView {
|
||||
let eye = sam.pos + DVec3::Y * 3.5;
|
||||
let (dir, fov) = match sim.watched(sam) {
|
||||
Some(d) => {
|
||||
let rel = d.pos - eye;
|
||||
let (dir, fov) = match sim.focus(sam) {
|
||||
Some(p) => {
|
||||
let rel = p - eye;
|
||||
let dist = rel.length().max(1.0);
|
||||
// About 14 blocks of view round a missile far off, wider when it is near.
|
||||
let fov = (2.0 * (7.0 / dist).atan()).to_degrees().clamp(1.5, 50.0);
|
||||
@@ -180,7 +180,7 @@ fn cell(sim: &Sim, index: usize, x: f32, y: f32, w: f32, h: f32, s: &mut Vec<Sha
|
||||
if lock {
|
||||
s.push(text("ЗАХВАТ", cx + cw / 2.0 - 18.0, cy + 3.0, color));
|
||||
}
|
||||
if !t.alive() {
|
||||
if !t.alive() || sim.showing_kill(sam) {
|
||||
s.push(text("ПОРАЖЕНА", cx + cw / 2.0 - 24.0, cy + ch / 2.0 + bh / 2.0 + 2.0, 0xFF60FF60));
|
||||
}
|
||||
let rel = t.pos - sam.pos;
|
||||
|
||||
Reference in New Issue
Block a user