Planned hero entry points: walls glow and pulse red, with a pulsing red light

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-03 08:58:35 +01:00
1 parent f113e1085c
commit 05ba88359e
3 files changed
+53 -1

No files matched your search

+20
View File
@@ -111,4 +111,24 @@ mod tests {
let l = from_bytes(json.as_bytes()).expect("load");
assert_eq!(l.game.map.t.len(), 256 * 256);
}
// writes a savegame shortly before a wave (with planned entry points) when DC_SAVE_OUT is set
#[test]
fn dump_entry_warning_save() {
let Ok(path) = std::env::var("DC_SAVE_OUT") else { return };
let mut g = Game::new(11, 64, 64);
for _ in 0..(60 * 20) {
g.update(0.05);
}
g.wave_timer = 31.0;
for _ in 0..30 {
g.update(0.05); // the scouts warn 30 s before the wave
}
assert!(!g.planned_entries.is_empty());
let (ex, ey) = g.planned_entries[0];
let mut cam = Cam::new(ex as f32 + 0.5, ey as f32 + 0.5);
cam.zoom = 12.0;
std::fs::write(path, to_json(&g, &cam, &Settings { language: "en".into(), ..Settings::default() })).unwrap();
}
}