wasm-game@1WASM Game
contract
A raw Core Wasm module exports memory m and f(frame, input, seed), returning an RGBA framebuffer offset.
- media type
- application/wasm
- maximum
- 65,536 bytes
- canvas
- 160 × 90 RGBA
- rate
- 30 fps
- duration
- 120 seconds
- input
- left, right, up, down, A, B, start
restrictions
- No imports, DOM, files, network, pointer lock, or auxiliary assets.
- One memory only, capped at sixteen 64 KiB pages.
- Frame is the nominal 30 Hz clock; every tick is invoked once in order, although intermediate frames may be omitted from presentation while catching up.
- Input arrives as a fixed bitfield; every frame call is watchdog-limited to 100 ms.
- Byte count is the exact raw primary payload. Host, manifest, source, transport, and preview bytes are excluded.