phaser-template is a template for making Phaser games. The template is inspired by the tutorial "Making your first Phaser 3 game".
Play the game on:
Clone the repository:
git clone https://github.com/remarkablegames/phaser-template.git
cd phaser-template
Install the dependencies:
npm install
Rename the project:
git grep -l phaser-template | xargs sed -i '' -e 's/phaser-template/my-game/g'
git grep -l 'Phaser Template' | xargs sed -i '' -e 's/Phaser Template/My Game/g'
Update the files:
-
README.md
-
package.json
-
index.html
-
public/manifest.json
-
src/index.ts
Update the environment variables:
cp .env .env.local
Update the Secrets in the repository Settings.
In the project directory, you can run:
Runs the game in the development mode.
Open http://localhost:5173 to view it in the browser.
The page will reload if you make edits.
You will also see any errors in the console.
Builds the game for production to the dist
folder.
It correctly bundles in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your game is ready to be deployed!
Builds the game and packages it into a Zip file in the dist
folder.
Your game can be uploaded to your server, Itch.io, Newgrounds, etc.