How rune2-h/rpg works
This is a console text RPG. Players create or load a character, then use the game menu to explore, fight, manage equipment and supplies, shop, rest, view status, and save progress. Exploration includes region encounters and a final boss that unlocks an infinite Boss Rush mode. The graph follows only calls visible in excerpts and contracts in game.h; world.c and inventory.c excerpts omit portions, so unverified internal links are left out.
Main entry points: main.c Game menus · game.h Game data contracts · world.c World exploration · inventory.c Inventory
Components 14
Game flow
- Game menus
main.c - Game data contracts
game.h
Character and save
- Character setup
player.c - Status and leveling
player.c - Save and load
saveload.c - Save file
World and combat
- World exploration
world.c - Encounters and bosses
world.c - Turn-based combat
combat.c - Infinite Boss Rush
world.c
Items and economy
- Inventory
inventory.c - Shop and gacha
inventory.c - Village rest
world.c
Other components
- Player
Connections 21
- Player → Game menus: plays
main.c - Game menus → Character setup: creates
main.c - Game menus → Save and load: loads or saves
main.c - Game menus → World exploration: explores
main.c - Game menus → Inventory: opens
main.c - Game menus → Shop and gacha: opens
main.c - Game menus → Status and leveling: views status
main.c - Game menus → Village rest: rests
main.c - Game menus → Game data contracts: uses
main.c - Character setup → Game data contracts: initializes
player.c - Status and leveling → Game data contracts: updates stats
player.c - Save and load → Save file: reads or writes
saveload.c - Save and load → Game data contracts: serializes
saveload.c - World exploration → Encounters and bosses: spawns
world.c - World exploration → Turn-based combat: starts fights
world.c - World exploration → Infinite Boss Rush: offers mode
world.c - Turn-based combat → Inventory: uses potion
combat.c - Turn-based combat → Status and leveling: checks level
combat.c - Inventory → Game data contracts: manages items
inventory.c - Shop and gacha → Inventory: changes contents
inventory.c - Village rest → Game data contracts: updates player
world.c