This repository is a minimal, opinionated starter template for building browser games with React + TypeScript and Vite.
Quick start
- Install dependencies:
npm install - Run dev server:
npm run dev
What this template includes
- Simple page structure: Menu, Settings, Game Setup, Gameplay placeholder, Credits, Error handler.
- Reusable UI components:
Layout,Card,Controls(Toggle/Select/Range/Number),Toastprovider, andIconhelpers. - Basic i18n scaffold with English/Spanish/Polish translations.
- LocalStorage-backed config hooks and a small audio hook.
How to use
- Replace the placeholder game mount in
src/pages/GamePlaywith your game renderer (Canvas, WebGL, or DOM). - Edit
src/i18n/index.tsto add or change copy. Use theuseI18n()hook in components. - Add assets under
public/assetsand updatepublic/orsrcimports accordingly.
Customize
- Change the app title in
index.htmlandpackage.jsonmetadata. - Update routes or page flow in
src/main.tsxand thepagesdirectory.
License
- This template is provided as-is. Add a license file if you intend to redistribute.
Enjoy building! If you'd like, I can help strip more pacman-specific assets or rename files to fit your preferred structure.