How younessfrommood/pokemon-mood works
pokeemerald-expansion is a Game Boy Advance ROM-hack base, not a standalone playable game. Developers adapt its engine and feature set; in play, player actions are handled by the runtime and appear as overworld or battle outcomes. The tree and README support major gameplay subsystems, but sampled source is too limited to establish most runtime call paths, so those connections are shown as unverified dashed edges. The README also highlights debugging and quality-of-life features; debug support is represented without assuming a specific wiring path.
Main entry points: main.c Game Loop · overworld.c Overworld · battle.h Battle Engine · battle_controllers.c Battle Controllers
Components 23
Runtime Core
- Game Loop
src/main.c - Shared State
include/global.h
World Gameplay
- Overworld
src/overworld.c - Field Maps
src/fieldmap.c - Scripted Events
src/script.c - Followers
src/follower_npc.c
Battle System
- Battle Engine
include/battle.h - Battle Controllers
src/battle_controllers.c - Player Battle Input
src/battle_controller_player.c - Opponent Controller
src/battle_controller_opponent.c - Battle AI
src/battle_ai_main.c - Battle Messages
src/battle_message.c
Player Systems
- Pokémon Data
src/pokemon.c - Items
src/item.c - Pokémon Storage
src/pokemon_storage_system.c - Pokédex
src/pokedex.c - Contests
src/contest.c - Save Data
src/save.c
Platform Services
- Link Multiplayer
src/link.c - Graphics
src/graphics.c - Sound
src/sound.c - Debug Features
src/debug.c
Other components
- Player
Connections 24
- Player → Game Loop: provides input
- Game Loop → Overworld: runs gameplay
- Overworld → Field Maps: uses maps
- Overworld → Scripted Events: dispatches events
- Overworld → Followers: updates followers
- Game Loop → Battle Engine: enters battles
- Battle Engine → Battle Controllers: dispatches commands
src/battle_controllers.c - Battle Controllers → Player Battle Input: selects player
- Battle Controllers → Opponent Controller: selects opponent
- Battle Engine → Battle AI: queries decisions
- Battle Engine → Battle Messages: displays messages
- Battle Engine → Pokémon Data: uses combatants
- Battle Engine → Items: uses battle items
- Overworld → Pokémon Data: uses party
- Overworld → Items: uses items
- Game Loop → Pokémon Storage: opens storage
- Game Loop → Pokédex: opens Pokédex
- Game Loop → Contests: runs contests
- Game Loop → Save Data: persists progress
- Game Loop → Link Multiplayer: supports multiplayer
- Game Loop → Graphics: renders scenes
- Game Loop → Sound: plays audio
- Game Loop → Shared State: uses shared state
- Player → Debug Features: invokes debug tools