2D game engine in Typescript (work in progress)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
android/vastdroid
doc/images
resources
src
view
.gitignore
.travis.yml
README.md
gulpfile.js
karma.conf.js
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

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