fubira / cordova-phaser-typescript-template

A cordova template for mobile game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova Phaser TypeScript template

Cordova Phaser TypeScript Webpack

Cordova + Phaser + Typescript template focused on development of mobile application.

Dependency

  • node-js 12.x

Features

  • Phaser 3.x
  • TypeScript + ESLint
  • Webpack4 with live server (builds and reloads the browser on changes)
  • Asset manager and loader with progress bar
  • BGM Player (Howler.js)
  • Mobile platform support (cordova)
  • Firebase analytics (cordova-plugin-firebase)
  • AdMob implementation (lycwed-cordova-plugin-admob-free)
  • GameService/GameCenter support (lycwed-cordova-plugin-game-services)
  • Logger (pino)
  • Globalization (i18n)
  • Testing framework (jest)

Setup

npm install -g cordova
npm install
npm run webpack

Run live server

npm start

Build for Android

cordova platform add android
npm run webpack
cordova build android

Build for iOS

cordova platform add ios
npm run webpack
cordova build ios

When fail in installation of nodegyp/grpc

When you fail in installation of nodegyp/grpc, please install nodegyp/grpc using LTS version node-js at first.

nodebrew use v9.11.2
npm install -g nodegyp
npm install --save grpc
nodebrew use latest
npm install

About

A cordova template for mobile game.

License:MIT License


Languages

Language:TypeScript 78.0%Language:JavaScript 15.2%Language:CSS 3.9%Language:HTML 1.1%Language:GLSL 1.0%Language:Shell 0.8%