How waelhasnaoui1/gta-3-source-code works
re3 is a playable reimplementation of Grand Theft Auto III: it loads the game’s assets, runs the game world and its actors, and presents the result through rendering and audio backends. The main runtime source and README establish the game and its platform/rendering/audio scope; the sampled references also support several subsystem connections. Many feature implementations were not sampled, so the graph keeps those capabilities visible without guessing their call paths.
Main entry points: main.cpp Game runtime · Ped.h Pedestrians · AudioManager.cpp Audio manager · World.h World simulation
Components 24
Runtime and world
- World simulation
src/core/World.h - Collision system
src/collision/Collision.cpp - Animation system
src/animation/AnimManager.cpp - Model information
src/modelinfo - Asset streaming
src/core/Streaming.cpp - Game runtime
src/core/main.cpp
Actors and gameplay
- Player controls
src/core/Pad.h - Player character
src/peds/PlayerPed.h - Pedestrians
src/peds/Ped.h - Vehicles
src/vehicles/Vehicle.h - Weapons and combat
src/weapons/Weapon.cpp - Missions and gameplay
src/control
Presentation
- Camera
src/core/Camera.h - Rendering
src/renderer/Renderer.cpp - HUD and text
src/renderer/Hud.cpp - Particles and effects
src/renderer/Particle.h
Audio
- Audio manager
src/audio/AudioManager.cpp - Music and radio
src/audio/MusicManager.cpp - Audio backends
src/audio/sampman.h
Persistence
- Save and load
src/save/GenericGameStorage.cpp
Other components
- GTA III assets
- Player
- RenderWare or librw
- MSS or OpenAL
Connections 22
- Player controls → Player character: configures
src/core/ControllerConfig.cpp - Player character → Pedestrians: extends
- Pedestrians → Animation system: uses
src/peds/Ped.h - Pedestrians → Collision system: uses
src/peds/Ped.h - Weapons and combat → Audio manager: requests audio
src/weapons/Weapon.cpp - World simulation → Collision system: uses
src/core/World.h - Game runtime → Rendering: uses
src/core/main.cpp - Game runtime → HUD and text: uses
src/core/main.cpp - Game runtime → Asset streaming: uses
- Asset streaming → GTA III assets: loads
- GTA III assets → Game runtime: required input
- Model information → Game runtime: model references
- Rendering → RenderWare or librw: renders through
- HUD and text → Camera: reads camera state
src/renderer/Hud.cpp - Particles and effects → Game runtime: runtime integration
src/core/main.cpp - Audio manager → Music and radio: uses
src/audio/AudioManager.cpp - Audio manager → Audio backends: uses
src/audio/AudioManager.cpp - Audio backends → MSS or OpenAL: selects
- Player → Player controls: provides input
- Save and load → Game runtime: loads game state
- Missions and gameplay → World simulation: gameplay interaction
src/control/Garages.cpp - Vehicles → World simulation: world participation