Skip to content

matthieu-locussol/starter-react-phaser3-tauri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter React + Phaser3 + Tauri

What's included?

  • Phaser 3 - overlaid canvas with the config in src/PhaserGame.ts and a scene in src/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
  • Default Tauri setup
  • That's it!

Getting started

Clone the project and in the project directory, you can run:

yarn install

Install all the packages in create react app, Phaser 3 and Tauri

yarn dev then yarn tauri dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
yarn tauri dev opens a Tauri window embedding the app.

yarn build or yarn tauri build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
yarn tauri dev builds your desktop app using Tauri.