A lightweight HTML5 game engine.
npm install playable.js[![Build Status][build-image]][build-url]
[![Coverage Status][coverage-image]][coverage-url]
[![Version][version-image]][version-url]
[![License][license-image]][license-url]
A lightweight HTML5 game engine.
``bash`
npm install playable.js
Simply download and include with a script tag. playable will be registered as a global variable.
For prototyping or learning purposes, you can use the latest version with:
`html`
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions:
`html`
You can browse the source of the NPM package at jsDelivr or unpkg.
`js`
let stage = new playable.Stage();
let text = new playable.Text('Hello playable.js');
stage.addChild(text);
`typescript
class Main extends playable.Stage {
public constructor() {
super();
let text = new playable.Text('Hello playable.js');
this.addChild(text);
}
}
new Main();
``
- Guide
- Examples
- API Reference
[build-url]: https://circleci.com/gh/Lanfei/playable.js
[build-image]: https://img.shields.io/circleci/project/github/Lanfei/playable.js.svg
[coverage-url]: https://coveralls.io/github/Lanfei/playable.js
[coverage-image]: https://coveralls.io/repos/github/Lanfei/playable.js/badge.svg
[version-url]: https://npmjs.org/package/playable.js
[version-image]: https://img.shields.io/npm/v/playable.js.svg
[license-url]: https://github.com/Lanfei/playable.js/blob/master/LICENSE
[license-image]: https://img.shields.io/npm/l/playable.js.svg