Backend Internals¶
The backend is Tatuy's platform integration layer. Read
Backend boundary for the architectural
reason behind it. The current implementation is Pygame.
Read in this order¶
-
Architecture: capability composition and dependencies.
-
Discovery and construction: factory,
registry, builders, and error handling.
-
Configuration: defaults, dictionary decoding, and limits.
-
Lifecycle: construction, initialization, window opening,
and shutdown.
- Capabilities: events, window, input, rendering,
audio, and capture.
- Pygame implementation: concrete implementation
and verification.
- Implementing a backend: extension requirements.
Source lives in src/tatuy/backend/. Runtime adapters live in
tatuy.events, tatuy.window, tatuy.input, tatuy.audio,
tatuy.capture, and the engine render pipeline.
The backend owns platform operations. Replay orchestration, scene simulation,
capture workers, viewport policy, and game rules belong to higher layers.