How miguelrg14/ecs_engine works
ECS Engine is a small C++ game engine with a playable arena demo. The user starts the game, whose scene creates entities and attaches components and scripts; the engine then runs ordered per-frame systems to process input, gameplay, transforms, collisions and events before rendering and presenting the frame. The graph includes the ECS, task kernel, resource and debug-tool capabilities documented in the README. Most internal calls were not sampled, so edges chiefly reflect documented frame order and explicit ownership; unsampled subsystem links are omitted.
Main entry points: Kernel.hpp Task kernel · Registry.hpp Entity registry · Application.hpp Application · Demo_Scene.cpp Demo scene
Components 19
Game and lifecycle
- Game entry
Game/code/main.cpp - Demo scene
Game/code/Demo_Scene.cpp - Application
Engine/code/headers/core/Application.hpp
ECS and simulation
- Entity registry
Engine/code/headers/ecs/Registry.hpp - Components
Engine/code/headers/components.hpp - Gameplay scripts
Game/code/scripts/Player_Controller.cpp - Movement system
Engine/code/sources/systems/Movement_System.cpp - Transform system
Engine/code/sources/systems/Transform_System.cpp - Collision system
Engine/code/sources/systems/Collision_System.cpp
Runtime services
- Task kernel
Engine/code/headers/core/Kernel.hpp - Input
Engine/code/headers/core/Input.hpp - Typed event bus
Engine/code/headers/events/Event_Bus.hpp
Rendering and tools
- Resource manager
Engine/code/sources/resources/Resource_Manager.cpp - Model loader
Engine/code/sources/renderer/Model_Loader.cpp - Render system
Engine/code/headers/systems/Render_System.hpp - OpenGL renderer
Engine/code/sources/renderer/Renderer.cpp - Debug tools
Engine/code/sources/systems/Debug_UI_System.cpp - Frame presentation
Engine/code/headers/systems/Present_System.hpp
Other components
- Player
Connections 25
- Player → Game entry: starts
- Game entry → Demo scene: enters scene
Game/code/main.cpp - Demo scene → Entity registry: creates entities
Game/code/Demo_Scene.cpp - Demo scene → Resource manager: loads assets
Game/code/Demo_Scene.cpp - Application → Task kernel: runs tasks
Engine/code/headers/core/Application.hpp - Application → Entity registry: owns
Engine/code/headers/core/Application.hpp - Application → Resource manager: owns
Engine/code/headers/core/Application.hpp - Application → OpenGL renderer: owns
Engine/code/headers/core/Application.hpp - Input → Entity registry: input system updates
- Entity registry → Components: stores
- Gameplay scripts → Typed event bus: publishes
- Task kernel → Input: runs first
- Task kernel → Gameplay scripts: runs second
- Task kernel → Movement system: runs third
- Task kernel → Transform system: runs fourth
- Task kernel → Collision system: runs fifth
- Task kernel → Typed event bus: dispatches sixth
- Task kernel → Render system: runs seventh
- Task kernel → Debug tools: runs eighth
- Task kernel → Frame presentation: runs last
- Collision system → Typed event bus: queues triggers
- Resource manager → Model loader: loads meshes
Engine/code/sources/resources/Resource_Manager.cpp - Render system → OpenGL renderer: submits scene
- Debug tools → Entity registry: inspects scene
- Frame presentation → Player: presents frame