Expand description
Top-level game state for one level: world, player, weapons, actors and triggers.
Modules§
- ai 🔒
- Enemy behaviour: perception (sight, hearing, editor flags), movement (chase, flee, strafe, obstacle and ledge avoidance) and special states (rising zombies, stone gargoyles, burning dudes). OpenBlood’s own design, tuned to feel like the original.
- save
- Saved games: the complete mutable game state serialized with bincode. Static data (tiles, animations, sounds) is reloaded from the original files.
Structs§
Enums§
Constants§
- AIR_
SECONDS - Breath before drowning starts.
- EXPLODER 🔒
- PLAYER_
ID - Pseudo sprite id used for the player in traces.
- PROJ_
BASE 🔒 - Projectile sprite types (OpenBlood-internal, outside Blood’s editor ranges).
- TICK_
RATE - Game clock rate.
- TNT_
BARREL 🔒 - Thing types with special handling.
- USE_
RANGE - Reach of the “use” action in xy units.
- WALL_
CRACK 🔒
Functions§
- is_
marker_ type - Sprite types that are editor-only markers.
- lerp3 🔒
- Blends
atowardb; big jumps (teleports, respawns) are not blended. - sprite_
extents - Vertical extents of a sprite as drawn: (top z, bottom z).