Roll the Dice
Theater-style flow with THREE.js and cannon-es physics dice — fifteen roll presets and WebGL rendering.
THREE.jsWebGLPhysicsJavaScript
Overview
A single-page interactive experience where users roll a physics-simulated die. ES modules load from a CDN, so the site must be served over HTTP — perfect for a lightweight static deploy.
Stack
- Vanilla HTML +
physics-dice.mjs - THREE.js + cannon-es via esm.sh
- Static file hosting behind nginx
Deploy
Hosted at rollthedice.fun as static assets.