项目作者: AdelMahjoub

项目描述 :
Quick start template to develop HTML5 games using phaser and typescript.
高级语言: JavaScript
项目地址: git://github.com/AdelMahjoub/phaser_ts_webpack.git
创建时间: 2018-03-02T23:32:21Z
项目社区:https://github.com/AdelMahjoub/phaser_ts_webpack

开源协议:MIT License

下载


Phaser Typescript webpack template

Quick start template to develop HTML5 games using phaser and typescript.

Features

  • Phaser 2.6.2
  • Typescript and tslint
  • Live server with hot module replacement and overlay (Shows a full-screen overlay in the browser when there are compiler errors or warnings)
  • There is no need to import pixi , p2 and phaser in each ts file, they are exposed as globals.
  • Faster builds (by parallelising work)
  • Build for cordova

Setup:

Clone or download this repo.

Move to the downloaded or cloned folder then $ npm install to install the dependencies.

Start the development server: $ npm start

Build the game: $ npm run build

Build for cordova and run a device: $ npm run cordova

The html5 build is in the dist folder.
the cordova build is in the www folder.
All required files and assets are added automatically to the index.html and the build folders.