jucasoft / phaser3-typescript-webpack-project-template

Quick-start project template combines Phaser 3, TypeScript and webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phaser 3 TypeScript webpack Project Template

This quick-start project template combines Phaser 3 with TypeScript and uses webpack for bundling.

Requirements

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

Available Commands

Command Description
npm install Install project dependencies
npm run start Build project and open web server running project, watching for changes
npm run build Builds code bundle with production settings (minification, no source maps, etc..)

Writing Code

After cloning the repo, run npm install from your project directory. Then, you can start the local development server by running npm run watch. The first time you run this you should see the following demo run:

Screenshot

After starting the development server with npm run start, you can edit any files in the src folder and webpack will automatically recompile and reload your server (available at http://localhost:8080 by default).

About

Quick-start project template combines Phaser 3, TypeScript and webpack

License:MIT License


Languages

Language:JavaScript 96.1%Language:TypeScript 3.5%Language:HTML 0.4%