Add bump-to-attack, death and a sim event queue

A step onto an occupied tile is now an attack: the geometry rule is checked
against terrain only and the target tile decides between move and bump.
Entities carry an attack stat; at zero hp they are removed. The sim reports
Attacked/Died through an event queue the game drains after every movement
window — the seam for sound, log, camera effects and spawns. Click-to-move
treats an occupied goal as a target but detours around entities in the way;
the player's death ends the game.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-19 10:59:14 +02:00
co-authored by Claude Opus 5
parent c512bf49da
commit b64c83fce0
6 changed files with 181 additions and 39 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ pub mod map;
pub mod world;
mod sim;
pub use sim::Sim;
pub use sim::{Event, Sim};
use chunk::Chunk;
use map::TileMap;