Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.27 KB

Vastgame

Build Status devDependencies Status

Vastgame is a 2D game engine written in Typescript for the HTML Canvas. I'm using it to build Stackmo, a puzzle game for the browser. You can play it here (warning: WIP!). The plan is to have a reusable game engine that I can use for future game projects after this one.

StackMo thumbnail

Setup

  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Run tests:
npm test

Developing

Build (development, includes source maps) and watch for Typescript changes:

npm run watch

Building Android package

Build (production) plus minification and a copy to the Android app's "assets" folder:

npm run build  //webpack production build (game.js)
gulp minify  //minify (game.js -> game.min.js)
gulp pack  //export required assets (.\\build)
gulp copy-android //copy to specific directory for Android WebView project