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.
- Install dependencies:
npm install
- Build:
npm run build
- Run tests:
npm test
Build (development, includes source maps) and watch for Typescript changes:
npm run watch
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