How curtidor/consolegraphx works
ConsoleGraphX is a Windows-console 2D game engine with an ECS runtime, scene scripting, sprite/map resources, and multi-console editor/runtime views. The main workflow loads a game module, registers and loads scenes, initializes entities and resources, updates systems, then renders to a console screen. The graph also captures the documented sprite/map authoring and window/logging capabilities. Source excerpts show the engine loop, editor setup, map-driven scene construction, and window-handler buffer sharing; unshown subsystem links are omitted rather than inferred.
Main entry points: engine.cpp Engine orchestration · scene.h Scene management · Editor.cpp Editor application · window_handler.cpp Window process
Components 28
Game runtime
- Standalone launcher
RunTime/RunTime.cpp - Game module
ConsoleGraphX/Engine/Core/Application/IGameModule.h - Application loop
ConsoleGraphX/Engine/Core/Application/application.cpp - Engine orchestration
ConsoleGraphX/Engine/Core/Application/engine.cpp - Runtime systems
ConsoleGraphX/Engine/Systems - Input system
ConsoleGraphX/Engine/Systems/input_system.h - Entities and components
ConsoleGraphX/Engine/Core/entity.h - Script components
ConsoleGraphX/Engine/Components/script.h
Scenes and assets
- Scene management
ConsoleGraphX/Engine/Scene/scene.h - Map loading
ConsoleGraphX/Engine/Resources/map_loader.h - Resource pools
ConsoleGraphX/Engine/Resources/resource_manager.h - Sprite components
ConsoleGraphX/Engine/Components/PositionComponents/sprite.h - Texture loading
ConsoleGraphX/Engine/Resources/texture_loader.h - Sample scenes
Sandbox/main_scene.h
Rendering and windows
- Sprite renderer
ConsoleGraphX/Engine/Graphics/renderer.cpp - Console screen
ConsoleGraphX/Engine/Graphics/ScreenGraphics/screen.h - Window manager
ConsoleGraphX/Engine/Core/Window/window_manager.cpp - Palette control
ConsoleGraphX/Engine/Graphics/palette.h
Editor and authoring
- Editor application
Editor/Editor.cpp - World editor
Tools/WorldEditor/world_editor.py - Sprite maker
Tools/SpriteMaker/sprite_maker.py
Platform services
- Window process
WindowHandler/window_handler.cpp - Windows services
WinCore/WinCore.h - Profiler
ConsoleGraphX/Engine/Core/Profiler/profiler.h - Logger
ConsoleGraphX/Engine/Core/Logger/logger_manager.h - TermLog client
External/TermLog/Client/client.h
Other components
- Game developer
- Player
Connections 30
- Game developer → Editor application: authors with
README.md - Editor application → Game module: loads
Editor/Editor.cpp - Standalone launcher → Game module: loads
RunTime/RunTime.cpp - Editor application → Application loop: runs
Editor/Editor.cpp - Standalone launcher → Application loop: runs
RunTime/RunTime.cpp - Game module → Scene management: registers scenes
- Application loop → Engine orchestration: delegates runtime
ConsoleGraphX/Engine/Core/Application/engine.cpp - Engine orchestration → Input system: polls
ConsoleGraphX/Engine/Core/Application/engine.cpp - Engine orchestration → Runtime systems: updates
ConsoleGraphX/Engine/Core/Application/engine.cpp - Runtime systems → Scene management: updates
- Scene management → Entities and components: creates entities
Sandbox/main_scene.h - Scene management → Map loading: loads map data
Sandbox/main_scene.h - Scene management → Resource pools: creates resources
- Resource pools → Texture loading: loads textures
- Entities and components → Sprite components: attaches
Sandbox/main_scene.h - Engine orchestration → Sprite renderer: draws sprites
ConsoleGraphX/Engine/Core/Application/engine.cpp - Sprite renderer → Console screen: renders to
- Engine orchestration → Console screen: fills and presents
ConsoleGraphX/Engine/Core/Application/engine.cpp - Engine orchestration → Window manager: creates window
ConsoleGraphX/Engine/Core/Application/engine.cpp - Window manager → Window process: spawns process
- Window process → Windows services: uses
WindowHandler/window_handler.cpp - Window process → Console screen: presents shared buffer
WindowHandler/window_handler.cpp - Console screen → Palette control: sets colors
ConsoleGraphX/Engine/Graphics/ScreenGraphics/screen.h - Editor application → Profiler: attaches metrics view
Editor/Editor.cpp - Editor application → Logger: attaches log view
Editor/Editor.cpp - Window process → TermLog client: includes client
WindowHandler/window_handler.cpp - Game developer → World editor: edits maps
README.md - Game developer → Sprite maker: creates sprites
README.md - Player → Standalone launcher: starts game
README.md - Sample scenes → Scene management: implements scenes
Sandbox/main_scene.h