/phaser3-starting-point

A starting point for a phaser 3 project.

Primary LanguageJavaScriptMIT LicenseMIT

Phaser3 Starting Point

A starting point structure for Phaser 3 using webpack and babel for transpilation.

Structure

The code must be written is ES6 then Webpack will automatically transpile it to ES5 to ensure browser compatibility.

Installation

npm install

How to run in development mode

To run in development mode type in the terminal:

npm run watch

The command above will automatically start a webpack dev server at port 3000 and will restart everytime a code file is saved, automatically minifiying the css file.

Build for production

To build for production type in the terminal:

npm run build

The command above will automatically minify the script files and css file into one.

You can see the transpiled files in:
./public/css/style.min.css and ./public/js/bundle.min.js