How constref/sdl3-gamedev works
This repository is an SDL3-based 2D game-engine demo, with platformer-oriented animation, physics, collisions, input, rendering, and TMX map support. Its intended runtime centers on an SDL window and game-world updates, but the platformer demo sources and main loop are not included in the supplied tree or excerpts, so those orchestration links remain unverified. The graph preserves the documented-by-source engine capabilities and the supported resource/map relationships; dashed links mark likely runtime interactions not established by the available evidence.
Components 27
SDL Platform
- SDL State
sdl3-demo/engine/sdlstate.h - Engine Runtime
sdl3-demo/engine/engine.h
World Components
- Game World
sdl3-demo/engine/world.h - Scene Nodes
sdl3-demo/engine/node.h - Component Base
sdl3-demo/engine/components/component.h - Collision Data
sdl3-demo/engine/components/collisioncomponent.h - Physics Data
sdl3-demo/engine/components/physicscomponent.h - Sprite Component
sdl3-demo/engine/components/spritecomponent.h - Input Component
sdl3-demo/engine/components/inputcomponent.h - Animation Component
sdl3-demo/engine/components/animationcomponent.h - Component Store
sdl3-demo/engine/components/componentstore.h
Runtime Systems
- Collision System
sdl3-demo/engine/systems/collisionsystem.cpp - Physics System
sdl3-demo/engine/systems/physicssystem.cpp - Input System
sdl3-demo/engine/systems/inputsystem.cpp - Camera System
sdl3-demo/engine/systems/basiccamerasystem.cpp - Animation System
sdl3-demo/engine/systems/spriteanimationsystem.cpp - Sprite Renderer
sdl3-demo/engine/systems/spriterendersystem.cpp - Timer System
sdl3-demo/engine/systems/timersystem.cpp
Assets and Messaging
- Resource Manager
sdl3-demo/engine/resources.h - Animation Data
sdl3-demo/engine/animation.h - TMX Map Loader
sdl3-demo/engine/tmx.cpp - TMX Map Model
sdl3-demo/engine/tmx.h - Commands
sdl3-demo/engine/messaging/commands.h - Events
sdl3-demo/engine/messaging/events.h - Event Queue
sdl3-demo/engine/messaging/eventqueue.cpp - Timer
sdl3-demo/engine/timer.h
Other components
- Game Player
Connections 25
- Game Player → Engine Runtime: runs
- Engine Runtime → SDL State: uses
- Engine Runtime → Game World: updates
- Game World → Scene Nodes: manages
- Scene Nodes → Component Base: attaches
- Collision Data → Component Base: extends
sdl3-demo/engine/components/collisioncomponent.h - Physics Data → Component Base: extends
sdl3-demo/engine/components/physicscomponent.h - Animation Component → Component Base: extends
sdl3-demo/engine/components/animationcomponent.h - Game World → Component Store: stores
- Collision System → Collision Data: processes
- Physics System → Physics Data: processes
- Input System → Input Component: reads
- Camera System → SDL State: updates view
- Animation System → Animation Component: advances
- Sprite Renderer → Sprite Component: renders
- Timer System → Timer: steps
- Resource Manager → SDL State: uses state
sdl3-demo/engine/resources.h - Resource Manager → Animation Data: creates
sdl3-demo/engine/resources.h - Resource Manager → TMX Map Loader: loads map
sdl3-demo/engine/resources.h - TMX Map Loader → TMX Map Model: constructs
sdl3-demo/engine/tmx.cpp - Animation Data → Timer: uses
sdl3-demo/engine/animation.h - Commands → Physics Data: affects
- Collision Data → Event Queue: enqueues events
- Component Base → Timer: tracks
- Component Base → Event Queue: queues timeouts