Drawbridges (down, up, automatic), frost spell and obsidian over cooled lava

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-05 21:52:12 +01:00
1 parent 76c23a06f0
commit 34b4640d85
32 files changed
+869 -31

No files matched your search

+27
View File
@@ -162,4 +162,31 @@ fn export_scenes() {
g.place_all_torches();
run(&mut g, 4.0);
save("lava-light", &mut g, cx as f32 + 5.0, cy as f32, 22.0, 0.0, false);
// bridges: a raised and a lowered drawbridge over water, a burning bridge, obsidian on lava
let mut g = Game::new(17, 80, 64);
let (cx, cy) = g.map.core;
g.gold = 50000.0;
open(&mut g, cx - 6, cy - 9, cx + 18, cy + 9);
for y in cy - 9..=cy + 9 {
for x in cx + 6..cx + 9 {
let t = &mut g.map.t[idx(x, y)];
t.kind = Kind::Water;
t.owner = Owner::None;
}
for x in cx + 12..cx + 15 {
let t = &mut g.map.t[idx(x, y)];
t.kind = Kind::Lava;
t.owner = Owner::None;
}
}
g.drawbridge_order(cx + 5, cy - 5, cx + 9, cy - 5);
g.drawbridge_order(cx + 5, cy - 1, cx + 9, cy - 1);
g.drawbridge_order(cx + 6, cy - 1, cx + 6, cy - 1); // raised
g.build_bridges(cx + 5, cy + 4, cx + 9, cy + 4);
g.ignite_at(cx as f32 + 7.5, cy as f32 + 4.5);
g.cool_lava_around(cx as f32 + 13.5, cy as f32 + 1.5, 2.5, 60.0);
g.place_all_torches();
run(&mut g, 2.5);
save("bridges", &mut g, cx as f32 + 9.0, cy as f32, 18.0, 0.0, false);
}