- Rust 100%
Leaves of Steel #
A Cogmind-style roguelike passion project, and my first Rust project, learning by doing. SDL3, no external engine.
It's still a work in progress and not ready for playtesting yet.

How to run #
Clone the repo, cargo run. Requires SDL3 (including sdl3_ttf, sdl3_image and
sdl3_mixer) installed on system to link. If your system's package manager
does not provide these, you can compile them following the instructions at
sdl3-sample.
To see the documentation, run cargo doc --no-deps --open. The cargo doc has
explanations for several unique game mechanics, like the alert system.
Cross compiled builds with build actions and static site hosted docs are planned.
Story #
- See plans/story-preamble.md. Intended to not be immediately revealed to the player, and in line with Cogmind's three-tier style of normal, spoiler and redacted lore.
Current features #
The game is work in progress and not properly playable yet. Rough outline of currently finished features:
- Separate gamefield and UI zoom with my own texture atlas blitting
- Item manipulation (swapping/dropping/)
- Prefab parsing from ascii, weighted prefab quota system with weighted sampling both among which prefabs to place and in choosing objects to place in prefabs
- Weapon/Propulsion/Utility/Unit/Wall/Floor/Obstacle/Hazard schemas loaded entirely from toml files
- UI c/e/w/q modes to display, in each mode with small deviations from Cogmind:
- info
- load bearing mass, speed and temperature
- matter/biomass/fuel costs
- energy/heat
- integrity/coverage
- vulnerability (item coverage divided by current integrity, 100 is a 1:1 ratio)
- ~260 personally made sprites (many of which are multitile)
- Keyframed, composed animations described through toml files
- 63 sfx tracks (149 seconds) and four songs (371 seconds), personally made for the game
- ~250 keybinds in user/default_keybinds.toml linked to ~130 game actions in src/input.rs, about half of them implemented
- Field of vision using my own implementation of symmetric shadowcasting with impedence, so that different objects can reduce visibility by different amounts
- Game save/loading with serde (minicbor for now, see commit messages for reasoning)
--print-spriteslaunch flag, prints all sprites with mapped atlas positions in assets/spritesheet-lookup.toml with hue shifts and unit status lights.--print-fontslaunch flag, prints all loaded fonts. The font system is not hard coded and all game fonts used can be changed in the settings. The fonts in the repo all have permissive licenses.

![]()
Planned features #
See plans/planned-features.md.
Compared to cogmind #
See plans/cogmind-comparison.md for my comparison of planned feature and mechanics parity to Cogmind.