A Phaser 3 game template with ES6 support via Babel 7 and Webpack 4 that includes hot-reloading for development and production-ready builds.
- Node.js - Install from here
- .babelrc - Babel 7 config. Babel converts/transpiles current code into backward compatible code. Know more.
- .eslintrc - ESLint config. ESLint is a javascript linting utility. Know more
- webpack - Webpack 4 configs (divided into common, dev and prod). Webpack is used to bundle and build source files. Know more
- package.json - Project config which contains project metadata(description, version, scripts, etc). Know more
- .gitignore - contains a list of file/directories which should be ignored by git. Know more
- src - source folder which contains everything related to the game(source code, assets, etc). Here, it contains a sample game made using this tutorial as base.Try it.
- yarn.lock - This file is generated when packages are installed using yarn package manager. You can use any other package manager too (npm, pnpm etc.).
- Create a new repo by clicking on
Use this template
above or here.
yarn
/npm install
- Install project dependenciesyarn start
/npm start
- Start dev serveryarn build
/npm run build
- Bundle and builds source files into dist.yarn start
/npm start
- Start dev serveryarn deploy
/npm run deploy
- Build and deploy game using gh-pages.