How adsgames/jim-surface-protocol works
J1M Surface Protocol is a resource-management game about reclaiming a polluted world. The player moves a worker across a generated tile map, gathers resources, builds trees and purifiers, and advances environmental-purity progress; the game also supports upgrades, menus, and saving/loading. The graph follows the documented gameplay and the sampled scene/world ownership. Some subsystems, including lighting and tile rendering details, are represented from the source index and declarations rather than inspected implementation excerpts.
Main entry points: world.cpp World simulation · tile_dictionary.cpp Tile dictionary · main.cpp Application entry · game.cpp Game scene
Components 22
Game flow
- Application entry
src/main.cpp - Initialization
src/states/init.cpp - Intro screen
src/states/intro.cpp - Main menu
src/states/menu.cpp - Game scene
src/states/game.cpp
World simulation
- World simulation
src/world/world.cpp - World effects
src/world/world_effects.cpp - World lighting
src/world/world_lighting.cpp - Sound orchestration
src/world/sound_orchestrator.cpp
Terrain and structures
- Tile map
src/tiles/tile_map.cpp - Tile types
src/tiles/tile_type.cpp - Tile dictionary
src/tiles/tile_dictionary.cpp - Structure dictionary
src/tiles/structure_dictionary.cpp
Player systems
- Worker
src/tasks/worker.cpp - Pathfinder
src/tasks/pathfinder.cpp - Toolbar
src/world/toolbar.cpp - Input controls
src/lib/controls.cpp
Game services
- Resource manager
src/world/resource_manager.h - Save game
src/lib/save_game.cpp - JSON utilities
src/lib/json_util.cpp - Game configuration
src/lib/project.h
Other components
- Player
Connections 36
- Player → Application entry: starts
- Application entry → Input controls: binds input
src/main.cpp - Application entry → Initialization: registers scene
src/main.cpp - Application entry → Game scene: registers scene
src/main.cpp - Application entry → Intro screen: registers scene
src/main.cpp - Application entry → Main menu: registers scene
src/main.cpp - Initialization → Tile dictionary: loads
src/states/init.cpp - Initialization → Structure dictionary: loads
src/states/init.cpp - Intro screen → Input controls: uses
src/states/intro.cpp - Intro screen → Tile dictionary: loads
src/states/intro.cpp - Intro screen → Structure dictionary: loads
src/states/intro.cpp - Main menu → Input controls: uses
src/states/menu.cpp - Main menu → Save game: loads or saves
src/states/menu.cpp - Main menu → Tile map: creates map
src/states/menu.cpp - Game scene → World simulation: updates and draws
src/states/game.cpp - Game scene → Toolbar: handles toolbar
- Game scene → Input controls: reads input
src/states/game.cpp - Game scene → Save game: saves game
src/states/game.cpp - Game scene → Tile dictionary: loads tiles
src/states/game.cpp - World simulation → Worker: updates worker
- World simulation → Tile map: updates map
- World simulation → Resource manager: manages resources
- World simulation → Sound orchestration: updates sound
- World simulation → World effects: updates effects
- World simulation → World lighting: uses lighting
- World simulation → Pathfinder: finds routes
src/world/world.cpp - Worker → World simulation: queries world
src/tasks/worker.cpp - Pathfinder → Tile map: reads traversability
src/tasks/pathfinder.cpp - Toolbar → Input controls: reads input
src/world/toolbar.cpp - Toolbar → Tile dictionary: uses tile data
src/world/toolbar.cpp - Tile map → Structure dictionary: generates structures
src/tiles/tile_map.cpp - Tile map → Tile dictionary: uses tile IDs
- Tile dictionary → Tile types: creates tile types
src/tiles/tile_dictionary.cpp - Tile dictionary → JSON utilities: parses definitions
src/tiles/tile_dictionary.cpp - Structure dictionary → JSON utilities: parses definitions
src/tiles/structure_dictionary.cpp - Game configuration → World simulation: provides game settings