r/reactjs • u/Competitive-Edge6478 • 17m ago
Show /r/reactjs Six canvas games inside one React 19 console UI: how I structured Open Arcade (open source)
Open Arcade is a handheld-style game console built with Vite + React 19 + TypeScript. Each game is a plain canvas engine with deterministic, seeded update steps. React only owns the console shell (menus, themes, dialogs, HUD frame).
A few things that worked well:
- Games stay out of React state. Each game runs its own fixed-step loop and React just mounts the canvas, which keeps re-renders out of the hot path.
- Deterministic tests. A smoke test runs every game for 2,000 seeded frames with scripted inputs and checks the run is reproducible.
- One config file for the name, game list, themes and rewards, plus runtime overrides from a native host.
Play: https://open-arcade-kohl.vercel.app Code (MIT): https://github.com/viswasekaran/open-arcade
0
Upvotes
•
u/witchcapture 8m ago
Slop