Overview
CrepeObscur is an indie turn-based dungeon crawler role-playing game developed collaboratively by a small team. Players navigate through atmospheric dungeon chambers, manage party composition, and engage in tactical turn-based combat against unique enemies.
The primary objective of the project is to build a robust, scalable game architecture in Unity and C#, prioritizing decoupled systems, clean state machines, and flexible data-driven design.
Game Design & Core Mechanics
1. Exploration & Dungeon Navigation
- Grid-Based Exploration: Predictable tactical movement that encourages calculated positioning and exploration.
- Chamber Progression: Dungeons feature interconnected rooms containing randomized encounters, traps, and treasure chests.
- Resource Management: Supplies, consumables, and health items must be balanced carefully during extended dungeon crawls.
2. Tactical Turn-Based Combat
- Dynamic Turn Queue: Initiative order computed from character agility, active status modifiers, and action costs.
- Action Point Economy: Units balance offensive strikes, defensive guards, and special skills within discrete action budgets.
- Status Effects & Synergies: Elemental and physical status effects (e.g., bleed, burn, stun) interact to reward strategic planning.
Technical Architecture
CrepeObscur/
├── Core/
│ ├── GameManager.cs
│ └── TurnQueueController.cs
├── Combat/
│ ├── CombatStateMachine.cs
│ └── AbilitySystem/
├── Entities/
│ ├── Unit.cs
│ └── Stats/
└── UI/
└── CombatHUD.cs
Architecture Highlights
- Finite State Machine (FSM): Combat flow is managed by a centralized
CombatStateMachinehandling transitions betweenRoundSetupState,PlayerTurnState,EnemyTurnState, andEncounterResolutionState. - ScriptableObject Data Layer: Character archetypes, weapon statistics, status ailments, and spell definitions are authored as
ScriptableObjectassets, enabling frictionless balancing without code edits. - Event-Driven Communication: Decoupled C# event channels broadcast combat state changes to UI widgets, particle emitters, and sound controllers.
// Turn-based state machine transition handler
public class CombatStateMachine : MonoBehaviour {
private ICombatState currentState;
public void ChangeState(ICombatState nextState) {
currentState?.OnExit();
currentState = nextState;
currentState.OnEnter();
EventManager.Broadcast(new CombatStateChangedEvent(currentState));
}
}
Key Features
| Feature | Implementation | Description |
|---|---|---|
| Combat Engine | C# State Machine | Structured turn management with support for reactions and interrupts. |
| Ability System | Modular Components | Targeted spells, area-of-effect abilities, and persistent buffs. |
| Inventory & Equipment | ScriptableObject Assets | Stat modifiers applied dynamically upon item equipping. |
| Audio-Visual Sync | Unity Animator & Events | Frame-accurate impact frames synchronized with particle FX and audio. |
Current Status & Roadmap
- Turn order calculation and initiative queue system.
- Core combat state machine and player ability selection.
- ScriptableObject stat and modifier framework.
- Advanced enemy AI behaviors and boss encounter routines.
- Procedural dungeon room layout generation.