Client Architecture
Areloria supports two rendering clients: a 2D isometric client (primary) and a 3D client (extended visualization).2D Client (Primary)
The 2D client is the active release path, built with PixiJS v7 and React.Entry Point
Rendering Pipeline
State Management
Uses React’suseSyncExternalStore for reactive UI updates:
Key Features
3D Client (Extended)
The 3D client uses Babylon.js with Vite for builds:Client Network Protocol
WebSocket Events
Client listens forwasd:network-packet:
Sending Intents
Build Configuration
Vite Configuration
Environment Variables
Public Assets
Static assets inapps/client-2d/public/ must be explicitly copied to dist/ during Docker builds:
Debug Tools
Next Steps
Architecture Overview
System design summary
Determinism
Deterministic simulation rules
Gameplay Systems
Core gameplay mechanics
Deployment
Deploy to production