Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (33 loc) · 1.29 KB

readme.md

File metadata and controls

46 lines (33 loc) · 1.29 KB

Phaser 3 Boilerplate (incl. typescript, webpack, gulp, sass)

A boilerplate project for HTML5 games using the Phaser 3 game engine and typescript. Includes example game that demonstrates how to build a loading screen, game loop with UI, and game over screen.

The template includes phaser3, the typescript definitions, and a tsconfig that will generate a bundled javascript file for the game.

Includes

Instructions

Requirements

  • NodeJS 6+
  • NPM (recommend v5+)

Installation

mkdir yourprojectname
git clone ... yourprojectname
npm install

Building

gulp build

Note: Files will be output to the /dist directory.

Development

This will watch all the files for changes and re-build automatically.

gulp watch

Browse to http://localhost:8080 to view the latest version while the watch is running.