How tridoz/herion_hero works
This is a C++ SDL3 game engine with gameplay and in-app editing capabilities. The principal runtime path begins in main.cpp, enters Engine, and coordinates input, menus, rendering resources, player state, and rooms. Separate branches cover CML-driven menus, JSON-backed configuration, audio, entity/component behavior, and image/world editing. Relationships below are limited to explicit source-index references and excerpted calls; the README is empty, and unsampled implementation details are not assumed.
Main entry points: Engine.cpp Engine loop · ButtonMenu.cpp Menu system · RoomManager.cpp Room manager · TextureManager.cpp Texture manager
Components 21
Game runtime
- Application entry
main.cpp - Engine loop
src/Engine/cpp/Engine.cpp - Input processor
src/Utils/hpp/InputProcessor.hpp
UI and rendering
- Menu system
src/UI/cpp/ButtonMenu.cpp - Menu views
src/UI/cpp/Menu.cpp - Texture manager
src/Textures/cpp/TextureManager.cpp - Application windows
src/UI/cpp/Window.cpp - Audio system
src/Sound/cpp/SoundBoard.cpp
World and entities
- Player entity
src/Entities/cpp/Player.cpp - Entity components
src/Entities/hpp/ECS.hpp - Room manager
src/WorldBuilding/cpp/RoomManager.cpp
Content configuration
- CML lexer
src/ParserCML/cpp/Lexer.cpp - CML parser
src/ParserCML/cpp/Parser.cpp - CML syntax tree
src/ParserCML/cpp/AST.cpp - JSON settings
src/Utils/hpp/JSONParser.hpp
Editing and support
- Room editor
src/WorldBuilding/cpp/EditorRoom.cpp - Image editor
src/Editor/cpp/ImageEditor.cpp - Image data
src/Editor/cpp/Image.cpp - Logging
src/Utils/hpp/Logger.hpp - File exceptions
src/Exceptions/hpp/HerionFileException.hpp
Other components
- Player
Connections 24
- Player → Application entry: starts
- Application entry → Engine loop: starts
- Engine loop → Texture manager: loads textures
src/Engine/cpp/Engine.cpp - Engine loop → Room manager: creates manager
src/Engine/cpp/Engine.cpp - Engine loop → Room editor: creates editor
src/Engine/cpp/Engine.cpp - Engine loop → Image editor: creates editor
src/Engine/cpp/Engine.cpp - Engine loop → Player entity: creates player
src/Engine/cpp/Engine.cpp - Engine loop → Menu system: loads configuration
src/Engine/cpp/Engine.cpp - Engine loop → Input processor: dispatches events
src/Engine/cpp/Engine.cpp - Engine loop → Application windows: creates windows
src/Engine/cpp/Engine.cpp - Engine loop → Audio system: coordinates audio
- Menu system → CML parser: parses CML
src/UI/cpp/ButtonMenu.cpp - CML parser → CML syntax tree: builds syntax tree
- Menu system → Menu views: uses views
- Menu system → Texture manager: uses textures
- Menu system → JSON settings: reads settings
src/UI/cpp/ButtonMenu.cpp - Room manager → Texture manager: gets tile textures
src/WorldBuilding/cpp/RoomManager.cpp - Room manager → JSON settings: reads dimensions
src/WorldBuilding/cpp/RoomManager.cpp - Engine loop → JSON settings: reads graphics settings
src/Engine/cpp/Engine.cpp - Player entity → Entity components: uses components
- Image editor → Image data: uses image data
- Engine loop → File exceptions: handles file errors
src/Engine/cpp/Engine.cpp - Engine loop → Logging: logs errors
src/Engine/cpp/Engine.cpp - Room manager → File exceptions: handles file errors
src/WorldBuilding/cpp/RoomManager.cpp