Options
All
  • Public
  • Public/Protected
  • All
Menu

gtp

GTP - A very basic 2D HTML5 game library

Build Status Coverage Status

This is a basic game library for 2D HTML5 games, written in TypeScript.

Features include:

  • Input
  • Audio
  • Asset management (async loading of graphics, sounds, resources)
  • Game states
  • Tiled map support

Hacking

First, install gulp using npm if you do not already have it:

npm install -g gulp

Next, check out the project and install all dependencies:

git clone https://github.com/bobbylight/gtp.git
cd gtp
npm install

The TypeScript code lives in src/, and is transpiled into dist/. A single file containing all transpiled content is also created in dist-all/. An example game (itself a WIP also) lives in example/. Both the library and the example game can be built via running gulp:

gulp

Tasks are also provided for individually running unit tests, linting, etc.

Generated using TypeDoc