Skip to content

A starter project for a Phaser 3 game with a React UI overlay. All written in TypeScript and built using Vite.

Notifications You must be signed in to change notification settings

rgarlik/phaser-react-ts-starter

Repository files navigation

Vercel

Phaser, React, TypeScript starter

Screenshot of the starter

A Phaser 3 game project with a React overlay (for UI purposes). Powered by Vite and using TypeScript out of the box. Also includes some very basic interaction between the React UI and the Phaser game. Check out the live demo!

🚀 Running

After cloning the repository, run the yarn command in the root directory to install all the required dependencies. If you're not using yarn (which you probably should), you can alternatively do this by running npm install.

Run the yarn dev command to start a developer server with hot reload. The npm alternative is npm run dev.

⚙️ Building

Build a production release of the project by running yarn build or npm run build. The built files are in the dist folder.