A procedural narrative roguelike written in C++17.
Shadow Index is a terminal-based dungeon crawler where players navigate a surreal, shifting labyrinth. It combines roguelike resource management with a branching narrative system where choices have lasting consequences.
Developer: Sathariels (Nithilan Kumaran)
- Deep Stats System: Manage 5 unique psychological stats—Resonance, Dread, Clarity, Pride, Compassion—instead of traditional HP/Mana.
- Procedural Storytelling: Explore a dungeon that is different every run, with events dynamically selected based on your previous choices.
- Narrative Coherence: Uses a custom "Story Flag" system to chain events together (e.g., finding a mysterious artifact early on unlocks specific outcomes in later depths).
- Risk vs. Reward: Every choice matters. Will you sacrifice Clarity to gain forbidden knowledge, or hold onto your Humanity at the cost of power?
Built from scratch in C++17 to demonstrate core systems engineering concepts:
- Entity-Component-Like Architecture:
Shadows(Equipment) rely on modular passive effect structures.Eventsdefine data-driven narrative nodes with flexible requirements and outcomes.
- Custom Event Engine:
- Implemented a directed acyclic graph (DAG) approach to storytelling where events can have
REQ(prerequisites) andADDFLAG(state changes). - Ensures narrative consistency within a procedurally generated environment.
- Implemented a directed acyclic graph (DAG) approach to storytelling where events can have
- Efficient Data Management:
- Uses
std::unordered_mapfor O(1) asset lookups. - Data-driven design: Events and items are loaded from external text files, allowing for rapid iteration without recompiling.
- Uses
- Robust State Serialization:
- Full save/load system using custom text serialization for all game state, including RNG seeds, inventory, and narrative flags.
- Deterministic RNG:
- Utilizes
std::mt19937(Mersenne Twister) for high-quality, reproducible procedural generation seeded by user input.
- Utilizes
- A C++17 compatible compiler (g++, clang++)
- Make
-
Clone & Enter Directory:
cd shadowIndex-2 -
Compile:
make
This will generate the
shadow_indexexecutable. -
Run:
./shadow_index