vladfaust / phaser3-typescript-webpack-boilerplate

👾 Phaser 3 multiplatform Typescript boilerplate

Home Page:https://phaser.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phaser 3 Typescript ES6 Boilerplate

Phaser 3 multiplatform boileplate with Typescript Webpack Core and bare Android application with fullscreen WebView.

Prerequisites

Recommended NPM packages installed globally:

Development

  1. Clone this boileplate with git clone https://github.com/vladfaust/phaser3-boilerplate.git
  2. cd core && yarn
  3. Create .env file like .env.example - this will will be used only for development
  4. Run yarn dev and open http://localhost:8080
  5. Develop your game starting from src/index.ts

Building

HTML5

Build an HTML5 game with yarn build:web. See core/build/web for output.

Android

  1. Build an HTML5 game optimized for Android with yarn build:android.
  2. Copy core/build/android to android/app/src/main/assets so index.html is directly under assets folder.
  3. Update your Android game with icons etc.

Contributors

@vladfaust - Creator

About

👾 Phaser 3 multiplatform Typescript boilerplate

https://phaser.io


Languages

Language:JavaScript 32.0%Language:Java 28.5%Language:TypeScript 28.1%Language:HTML 11.4%