The entire game runs on-chain. Physics, AI, enemy logic, collision detection — all executed inside a Substrate runtime. Frames are rendered by the RPC node and streamed to your browser as raw pixels. Your device is just a screen.
Your browser sends keypresses. The chain does everything else.
Execution
Every game tick is a state transition executed identically by every validator. Game state uses integer-only fixed-point math (i32×1000) for deterministic consensus — the same inputs always produce the same state, block after block.
Infrastructure
Player inputs are submitted as extrinsics and the game state advances on-chain every block. When your browser requests a frame, the RPC node raycasts the scene from on-chain state, composites sprites, and streams back raw pixels. Your device just paints them.
Substrate
The DOOM engine is a Substrate pallet — a runtime module that sits alongside staking, governance, and token pallets. Each player gets an independent on-chain game state. Up to 32 concurrent players per chain.
If Substrate can run DOOM — with real-time physics, AI, and rendering — imagine what it can do for your project. Launch a production-grade appchain in minutes.