Skip to Content
The Alchemy Project

include/game

Guide: Game Logic & Tables

Files

FileDescription
character.hThe definitions of characters, classes, Djinn and enemies, and a level up's result.
character_ids.hCharacter numbers, with each character's Japanese name, and the portraits.
game.hThe game's rules and the tables they read: items, summons, abilities, Djinn, classes, elements, enemies, the game flags and the shops' rare item stock.
game_flags.hThe game flags' size, and the byte and bit of GameFlagBytes that hold a flag.
game_functions.hThe game module's functions, declared once each in the order of its stub table (src/game/stubs.s).
inventory.hOverflowItem, an item slot the spoils code uses when items are handed out.
item.hItems: their definitions, types, flags and effects.
main_routine.hThe main routine, which runs the game's engines one after another, and the scene changes between them.
main_routine_state.hThe main routine's state: the transition data the main routine reads between engines and the state every engine shares, which a save file keeps.
stubs.hParty members, items, Djinn and game-state operations.
system_call.hThe system call layer: an inline for each of the thirteen main-image functions below that the scene, menu and debug overlays import, which every overlay call of them goes through.

On this page