Personal · Public beta
Hamlet Guard
A pixel-art tower defense game you can play in the browser and on your phone.
- Role
- Concept, game design and full development
- Period
- 2026
- Visit the site
- Visit the site ↗

The problem
I wanted a complete, publishable game with online leaderboards you can trust: in a web game anyone can fake their score.
The solution
I separated simulation from rendering: a deterministic ECS engine runs identically in the browser and on the server, so every leaderboard run is re-simulated from its replay before it's accepted.
Technical highlights
- Deterministic ECS simulation (bitECS) with lint rules that ban Math.random and Date inside the engine
- Anti-cheat leaderboards: the server re-simulates the replay (seed + commands) before accepting a score
- PixiJS 8 rendering on React 19, installable PWA and a dedicated itch.io build
- API on Cloudflare Workers with Hono, Better Auth and serverless Postgres (Neon + Drizzle)
- 100 maps, 8 towers, 41 enemies, 5 languages; tested with Vitest and Playwright on three browsers
Stack
- TypeScript
- React 19
- PixiJS
- bitECS
- Zustand
- Vite
- Cloudflare Workers
- Hono
- Drizzle
- PostgreSQL
- Playwright
Gallery




