How tomaisthorpe/tedengine works
Main Components
The system architecture should be divided into these major subsystems:
a. Core Engine Components:
• Core System (Actor, World, GameState management)
• Resource Management
• Event System
• Job Management
b. Graphics Pipeline:
• Renderer
• Shaders
• Graphics Components (Mesh, Texture, Materials)
• Canvas Management
c. Physics System:
• Physics World
• Colliders
• Worker-based Physics Processing
d. Input/Output Systems:
• Input Management (Keyboard, Mouse, Touch)
• Audio System
• Debug System
e. Scene Management:
• Actor Components
• Camera System
• Transform System
Relationship Flows
[Core Engine Layer]
• ↑↓
[Graphics Pipeline] ←→ [Physics System]
• ↑↓ ↑↓
[Scene Management] ←→ [Input/Output]
• ↑↓
[UI Layer / Debug Tools]
Specific Implementation Details
• Rounded rectangles for subsystems
• Hexagons for workers/async processes
• Diamonds for resource managers
• Circles for event handlers
• Blue: Core engine components
• Green: Graphics-related systems
• Red: Physics systems
• Yellow: Input/Output systems
• Purple: Debug/Development tools
Important Architectural Patterns to Highlight
• Component-based architecture (Actor Components)
• Event-driven communication (EventQueue)
• Worker-based physics processing
• Resource management system
• Job management system
Technical Details
Annotations for:
• WebGL rendering pipeline
• Physics worker communication
• Resource loading flow
• Event propagation paths
• Debug panel integration
Integration Points
Integration with:
• React-based UI components
• WebGL context
• Web Workers
• Browser APIs (Audio, Input)
The debug/development tools integration
This architecture should reflect the engine's focus on game jam development and learning purposes, while showing the professional structure of the various subsystems.