https://github.com/bobbylight/gtp
A very basic HTML5 2D game framework.
https://github.com/bobbylight/gtp
Last synced: 4 months ago
JSON representation
A very basic HTML5 2D game framework.
- Host: GitHub
- URL: https://github.com/bobbylight/gtp
- Owner: bobbylight
- Created: 2014-06-15T23:44:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-12-13T04:24:25.000Z (7 months ago)
- Last Synced: 2026-02-14T05:22:14.339Z (5 months ago)
- Language: TypeScript
- Homepage: http://bobbylight.github.io/gtp
- Size: 3.39 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GTP - A very basic TypeScript 2D game library


[](https://codecov.io/gh/bobbylight/gtp)
This is a basic game library for 2D games, written in TypeScript.
Features include:
* Input
* Audio
* Asset management (async loading of graphics, sounds, resources)
* Game states
* [Tiled](http://www.mapeditor.org/) map support (supports 1.11.x JSON format)
## Hacking
First, check out the project and install all dependencies:
```bash
git clone https://github.com/bobbylight/gtp.git
cd gtp
nvm use
npm install
```
The TypeScript code lives in `src/`, and is transpiled into `lib/` by running `npm`. Useful commands:
```bash
npm run clean # deletes the build, doc, and coverage directories
npm run build # build
npm run watch # builds and watches for changes
npm run lint # Lints the source code
npm run test # runs unit tests and generates coverage report
npm run doc # generates documentation
```
See `package.json` for all available commands.