Title demo as a showcase: doors, every trap, rune tower, rooms, mana spring, hero gate, spells

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-05 19:38:46 +01:00
1 parent fa61a00e9e
commit 4b57157e9c
2 files changed
+160 -12

No files matched your search

+9
View File
@@ -381,6 +381,15 @@ impl Game {
}
// armed traps go off when enemies come close
// the title demo: its armed traps count down and go off (there is no forge economy there)
pub(crate) fn demo_traps(&mut self, dt: f32) {
for t in self.traps.iter_mut() {
t.fired += dt;
t.cd -= dt;
}
self.update_traps(dt);
}
fn update_traps(&mut self, dt: f32) {
// poison clouds and rolling boulders
for c in self.clouds.iter_mut() {