How openblack/openblack works
Main Components Overview
a) Core Engine Layer:
• Graphics System (src/Graphics/)
• Audio System (src/Audio/)
• Input System (src/Input/)
• File System (src/FileSystem/)
• Windowing System (src/Windowing/)
b) Game Logic Layer:
• Entity Component System (src/ECS/)
• Scripting System (src/LHScriptX/)
• Resource Management (src/Resources/)
• Game State Management (src/Game.h, src/Level.h)
c) Asset Processing Layer:
• Various file format handlers (components/*)
• Resource loaders and managers
Component Relationships
Game Core
• Graphics Pipeline
• Renderer Interface
• Shader Management
• Resource Management
• Audio Pipeline
• Audio Manager
• Sound Decoders
• ECS Framework
• Components
• Systems
• Archetypes
• Game Systems
• Scripting Engine
• Physics/Dynamics
• Input Management
Specific Implementation Details
• Interfaces (rounded rectangles)
• Concrete implementations (solid rectangles)
Cross-Platform Support
Platform-specific implementations:
• Android support
• iOS support
• Desktop (Windows/Linux/macOS)
Key Architectural Patterns
Emphasize:
• Component-based architecture (ECS)
• Interface-based design (multiple *Interface.h files)
• Resource management system
• Plugin architecture for different rendering backends
External Dependencies
Integration with:
• SDL2
• OpenGL/Vulkan
• spdlog
• Other third-party libraries
[Platform Layer]
• ↓
[Core Systems]
• ↓
[Game Logic]
• ↓
[Resource Management]
• ↓
[Asset Processing]
Important Considerations:
Clear labels for
• System boundaries
• Interface points
• Data flow directions
• Component relationships
Modular architecture
• How components can be swapped
• Demonstrate platform abstraction
• Resource management flow
• Hierarchical layouts
• Grouping and containment