This project was bootstrapped with Create React App.
What's included? - Check the preview
- Phaser 3 - overlaid canvas with the config in
src/PhaserGame.ts
and a scene insrc/scenes/
- Create React App - React, TSX, ES6, TypeScript, no need to install bundler, ...etc
- An example button in
src/App.tsx
showing how to communicate with Phaser within a React component - That's it!
Clone the project and in the project directory, you can run:
Install all the packages in create react app
+ Phaser 3
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.