MathLock: Retro 2D Raycaster Math Adventure
Custom 480×270 Canvas DDA engine, exact rational fractions, and a 30-chapter campaign for Grades 0–5.
We built MathLock, a PG 1990s-inspired on-rails arithmetic adventure teaching whole numbers, signed operations, and fractions for Grades 0–5 with zero heavy 3D assets and zero child PII.
Interface & system screens
4 capturesThe engineering challenge
Browser 3D math games often bog down classroom Chromebooks and mobile devices with bulky textures, while traditional drill apps lose student engagement or collect sensitive child data.
Implemented architecture
We engineered a pure 2D HTML5 Canvas DDA raycaster (480×270) driven by a deterministic fixed-timestep simulation outside React, a parametric low-poly sprite baker for 24 operation-matched beasts and 8 bosses, an exact rational curriculum engine supporting equivalent fractions (a/b), procedural Web Audio SFX/BGM, and parent/teacher progress dashboards.
Delivered capabilities
- Custom 2D Canvas DDA raycaster (480×270) with per-column Z-buffer occlusion and direct entity picking.
- Exact rational arithmetic engine across Grades 0–5 covering equivalent fractions, signed math, and adaptive timers.
- 6-episode, 30-chapter story campaign with procedurally baked sprites and zero external 3D asset bloat.
- Zero-child-PII codenames backed by passwordless Better Auth Magic Links and teacher/family dashboards.