A minimal starter template for 2D game development with Phaser 3, Vite, and TypeScript.
This template is designed to be used with Dyad as a starting point for AI-assisted 2D game projects.
- Phaser 3.90 — HTML5 2D game framework
- Vite 6 — fast dev server and bundler
- TypeScript 5.7
npm install
npm run devThen open the local URL printed in the terminal.
npm run dev— start the Vite dev server with HMRnpm run build— type-check and build for productionnpm run build:dev— build without type-checking (faster iteration)npm run preview— preview the production build locally
src/
main.ts # entry point, game config
scenes/ # Phaser scenes
entities/ # sprites, players, enemies
utils/ # helpers
public/ # static assets (served at /)
This template is part of the official Dyad template collection. Fork it, remix it, or use it as a base for your own 2D games.