Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethanent/canvax

Entity-based rendering library
https://github.com/ethanent/canvax

canvas canvas2d collision-detection javascript js rendering

Last synced: 10 days ago
JSON representation

Entity-based rendering library

Awesome Lists containing this project

README

        

canvax logo

---

> The powerful entity-based canvas rendering library

[GitHub](https://github.com/ethanent/canvax) | [NPM](https://www.npmjs.com/package/canvaxjs)

## Using canvax

The canvax library is super simple to use. To create a new renderer, go ahead and attach a new renderer to a canvas element.

```javascript
var game = new canvax.Renderer(document.querySelector('#myCanvas'))
```

## Install canvax

```
npm install canvaxjs
```

## Documentation

Documentation is limited at the moment. For now, look at the default properties in entities' model class files. (ex. [model/Rectangle.js](https://github.com/ethanent/canvax/blob/master/model/Rectangle.js))