How hyouka0904/mc2 works
MechCommander 2 is a cross-platform real-time tactical game built on a reimplemented GameOS layer. The player enters through the game UI, selects or starts a mission, commands units through simulation and combat, and can continue a campaign with saved progress; the repository also documents logistics/mech-lab screens, movies, sound, and mod overlays. The map follows the README’s stated layers and capabilities. Source excerpts are limited, so edges describe documented relationships rather than presumed calls; network play is explicitly unimplemented.
Main entry points: mission.cpp Mission simulation · logmain.cpp Game runtime · mainmenu.cpp Menus and missions · logistics.cpp Logistics and saves
Components 22
Game flow
- Game runtime
code/logmain.cpp - Menus and missions
code/mainmenu.cpp - Mission simulation
code/mission.cpp - Mechs and warriors
code/mech.cpp - Logistics and saves
code/logistics.cpp - Cutscenes
code/mc2movie.cpp
Game engine
- Pathfinding
mclib/move.cpp - Terrain and camera
mclib/camera.h - Models and textures
mclib/mech3d.cpp - Visual effects
mclib/gosfx/effectlibrary.hpp - ABL scripting
mclib/ablscan.cpp - Game data files
mclib/ffile.cpp
Game UI
- GUI widgets
gui/alistbox.cpp - Pilot review
code/pilotreviewarea.cpp
Platform services
- Audio
GameOS/gameos/gameos_sound.cpp - GameOS services
GameOS/include/gameos.hpp - Rendering API
GameOS/gameos/render/render_device.h - SDL GPU backend
GameOS/gameos/render/gpu/gpu_device.cpp - OpenGL backend
GameOS/gameos/render/gl/gl_device.cpp
Mods
- Mod overlays
GameOS/gameos/mods/mod_system.cpp - Mod authoring tool
tools/mc2mod/main.cpp
Other components
- Player
Connections 22
- Player → Game runtime: starts
README.md - Game runtime → Menus and missions: runs
- Menus and missions → Mission simulation: starts mission
README.md - Mission simulation → Mechs and warriors: commands units
- Mission simulation → Pathfinding: uses navigation
README.md - Mission simulation → Terrain and camera: uses terrain
README.md - Mission simulation → ABL scripting: runs mission scripts
README.md - Menus and missions → Logistics and saves: opens logistics
- Logistics and saves → Game data files: loads game data
- Mission simulation → Models and textures: renders models
README.md - Mission simulation → Visual effects: renders effects
README.md - Menus and missions → GUI widgets: uses widgets
README.md - Logistics and saves → Pilot review: shows pilot review
- Game runtime → Cutscenes: plays cutscenes
README.md - Cutscenes → Audio: streams audio
README.md - Game runtime → GameOS services: uses platform layer
README.md - GameOS services → Rendering API: draws through
README.md - Rendering API → SDL GPU backend: uses by default
README.md - Rendering API → OpenGL backend: falls back to
README.md - Game runtime → Game data files: opens game files
README.md - Game data files → Mod overlays: applies overlays
README.md - Mod authoring tool → Mod overlays: uses mod API
README.md