Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beeglebug/pixi-tiled
Import Tiled maps into pixi v3
https://github.com/beeglebug/pixi-tiled
Last synced: 8 days ago
JSON representation
Import Tiled maps into pixi v3
- Host: GitHub
- URL: https://github.com/beeglebug/pixi-tiled
- Owner: beeglebug
- License: mit
- Created: 2015-04-23T14:45:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T01:42:49.000Z (almost 8 years ago)
- Last Synced: 2024-09-24T15:40:26.134Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 27
- Watchers: 4
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixi-tiled [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
Import [Tiled](http://www.mapeditor.org/) maps into pixi v3.
A piece of loader middleware which parses Tiled json maps into renderable PIXI objects.
The resulting object is an extension of PIXI.Container, with children representing each of the Tiled map layers.
## installation
```sh
npm install pixi-tiled
```## usage
```js
var PIXI = require('pixi.js');
var pixiTiled = require('pixi-tiled');/**
* Simply load a Tiled map in json format
* The map data will be loaded, parsed and a renderable Map object made available on res.tiledMap
*/
PIXI.loader.add('map.json', function(res)
{
var map = res.tiledMap;
});PIXI.loader.load();
```## features
- Tiled maps in json format
- Uncompressed layer data only
- CSV or base64 encoding[npm-url]: https://npmjs.org/package/pixi-tiled
[npm-image]: http://img.shields.io/npm/v/pixi-tiled.svg?style=flat[travis-url]: http://travis-ci.org/beeglebug/pixi-tiled
[travis-image]: http://img.shields.io/travis/beeglebug/pixi-tiled/master.svg?style=flat