How phoboslab/wipeout-rewrite works
Main System Components
a) Platform Layer
• Create two parallel tracks showing the dual platform backends (SDL2 and Sokol)
• Platform-specific components (input, audio, window management)
• OpenGL rendering capabilities (GL 2.x for SDL2, GL 3.3 for Sokol)
b) Core Engine Layer
• Rendering System (render_gl.c, render_software.c)
• Memory Management (mem.c)
• Input System (input.c)
• System Management (system.c)
• Utility Functions (utils.c)
c) Game Logic Layer
• Game State Management (game.c)
• Scene Management (scene.c)
• Physics and Collision
• AI Systems (ship_ai.c)
• Particle Systems (particle.c)
d) Asset Management
• Image Loading
• Sound Management (sfx.c)
• Track Loading (track.c)
• Model Management (object.c)
Specific Implementation Details
[Platform Layer]
• SDL2 Backend
• OpenGL 2.x
• Sokol Backend
• OpenGL 3.3
[Core Systems]
• Memory Manager
• Renderer
• Input Handler
[Game Systems]
• Ship Management
• Player Ships
• AI Ships
• Race Management
• Weapons
• Camera
[UI Systems]
• HUD
• Menus
• User Interface
Technical Details to Highlight
• Rendering pipeline options (GL vs Software)
• Audio system (QOA format support)
• Platform-specific features (e.g., controller support in SDL2)
• Build configuration options
Notes for Implementation Details
Callouts for:
• Memory management strategy
• Asset loading paths
• Save data handling
• Platform-specific optimizations
• WASM/Emscripten considerations
• Nested components
• Proper layering
• Export to high-resolution formats