/Template-Game-Phaser

template to start creating a game using Phaser 3 - Base on https://phasertutorials.com/creating-a-phaser-3-template-part-1/

Primary LanguageJavaScriptMIT LicenseMIT

Template Game (Phaser)

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

Requirements

Node.js is required to install dependencies and run scripts via npm.

Available Commands

npm install
npm start
npm run build
npm run webpack --watch
npx eslint src/ --fix

Following scenes

  • 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.

Run to start

npm install yarn init

Credits

Logo image - Image by IO-Images from Pixabay