Socket
Book a DemoInstallSign in
Socket

pixi-tiled

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixi-tiled

A Pixi.js plugin to import maps from the Tiled map editor.

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

pixi-tiled NPM version Build Status

Import Tiled 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

npm install pixi-tiled

usage

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

Keywords

pixi

FAQs

Package last updated on 19 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts