Examples
Shortcuts to getting started.
Self contained cloneable templates that demonstrate real world use of three-flatland features.
Basic Sprite
Minimal Sprite2D setup with hover and press states.
Animation
CPU-clocked spritesheet animation, frames sampled from a packed atlas.
Batch Rendering
Interactive building placement, one shared material, batchCount locked at 1.
Knightmark
Spatial-hashed knight collision stress test, spacebar adds 100 more.
Pass Effects
Full-screen post-processing: CRT, LCD, VHS, scanlines, swapped between presets.
TSL Nodes
Per-sprite TSL node shader effects, still drawn in one shared batch.
Tilemap
A procedurally generated dungeon as batched tile layers, with animated tiles.
Skia
Skia WASM vector rendering through the active WebGPU or WebGL backend.
Slug Text
Per-pixel Bezier glyph outlines via the Slug algorithm, crisp at any scale.
2D Lighting
Forward+ lighting (DefaultLightEffect) in a dungeon: torch flicker, click-to-walk.
Hit Testing
Raycaster sprite picking: hover, drag, and walk-to-collect coins.