Template to start creating a game using Phaser 3 - Base on Phaser 3 Webpack Project Template and A Modern Web Development Setup For Phaser 3
Node.js is required to install dependencies and run scripts via npm
.
npm install
npm start
npm run build
npm run webpack --watch
npx eslint src/ --fix
- Boot – the first scene that is loaded by Phaser, and it will load the assets that are required in the preloader scene.
- Preloader – displays a logo, a progress bar, and loads all of the assets that are needed in the game.
- Title – the title screen of our game, and it displays buttons to start the game, view credits, and modify options.
- Options – will contain any settings you want players to be able to modify in your game (example: mute audio).
- Credits – credits for your game.
- Game – contains the main logic for your game.
npm install yarn init
Logo image - Image by IO-Images from Pixabay