Parnswir/tie

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# TIE - A 2D Tile Engine Prototype
[![CircleCI](https://circleci.com/gh/Parnswir/tie.svg?style=svg)](https://circleci.com/gh/Parnswir/tie) [![Coverage Status](https://coveralls.io/repos/github/Parnswir/tie/badge.svg?branch=master)](https://coveralls.io/github/Parnswir/tie?branch=master) ![Dependencies](https://david-dm.org/parnswir/tie.svg) ![Dev Dependencies](https://david-dm.org/parnswir/tie/dev-status.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/6a03861a3e03f6345e59/maintainability)](https://codeclimate.com/github/Parnswir/tie/maintainability) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)


This is a prototype of a 2D tile engine based on [JSIso](http://jsiso.com/), which both reduces the headaches of JSIso and adds useful features.
Simple games can be created by supplying map files, complete with layers, z-order, collision detection, path-finding, lighting, and extensible scripting.

![Screenshot](/doc/TIE.jpg)


## Examples
Have a look at the [sample directory](sample/) for tutorials.


## Development
The engine is based on ES6 modules, so if that's your thing, import it directly!

You can also use [Webpack](http://webpack.js.org) to bundle it.
Have a look at the [Webpack config file](webpack.config.js) or the official Webpack [Getting Started Guide](http://webpack.js.org/guides/get-started/) for how this works and install the dev-dependencies.

Please open an issue on Github for suggestions or bugs.
If you would like to contribute, please send a pull-request.

I would appreciate a short message if you do something cool with this engine in your own project.
Please keep in mind that JSIso (i.e. everything in the `src/jsiso` directory) is licensed under the Apache License Version 2.0.

## Tests
Run `npm test` for tests and coverage.
Use `npm run report` for a html report on coverage.

During development, it is useful to use `ava -w` directly, as it will watch the code and execute all relevant tests automatically.
You might want to install [AVA](https://ava.li) globally for this.

PRs will automatically be checked for test failures and coverage drops.

## Resources
Some images in the examples are provided with permission of the original artists.
Please have a look at the included license files and check out their other work!
Keep these licenses in mind if you plan to re-use parts of the examples.