All Projects → eXponenta → pixi-tiled

eXponenta / pixi-tiled

Licence: other
TILED importer for PIXI. Support Images, Shapes, Layers.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pixi-tiled

cl-tiled
Tiled map library for CL
Stars: ✭ 15 (-21.05%)
Mutual labels:  tiled, tiled-parser
learning-pixi
一步一步的告诉你如何通过Pixi渲染引擎制作游戏和交互媒体(译)
Stars: ✭ 58 (+205.26%)
Mutual labels:  pixi-js
ProceduralHexTerrainGenerator
Procedural Hex Terrain Generator
Stars: ✭ 20 (+5.26%)
Mutual labels:  pixi-js
Protobuf-Dreamer
A tiled DeepDream project for creating any size of image, on both CPU and GPU
Stars: ✭ 39 (+105.26%)
Mutual labels:  tiled
autotiler
Autotile 47-tile blob tileset generator application with Godot export support. Based on Electron JS.
Stars: ✭ 32 (+68.42%)
Mutual labels:  tiled
Tiled-Amethyst-Example
Simple example for drawing a map made with Tiled with Rust and Amethyst.
Stars: ✭ 16 (-15.79%)
Mutual labels:  tiled
tilepix
Library for combining tiled maps with pixel
Stars: ✭ 40 (+110.53%)
Mutual labels:  tiled
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (+21.05%)
Mutual labels:  tiled
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-15.79%)
Mutual labels:  tiled
RawSalmonEngine
A game engine utilising "Tiled" map files
Stars: ✭ 15 (-21.05%)
Mutual labels:  tiled
rs-tiled
Reads files from the Tiled editor into Rust
Stars: ✭ 223 (+1073.68%)
Mutual labels:  tiled
flame tiled
Package to add Tiled support for the Flame game engine
Stars: ✭ 21 (+10.53%)
Mutual labels:  tiled
electron-pixijs-typescript
Sample using Electron, Pixi.JS and TypeScript to make a game app that runs on browser and on desktop.
Stars: ✭ 25 (+31.58%)
Mutual labels:  pixi-js
Valhalla
Open Source Routing Engine for OpenStreetMap
Stars: ✭ 1,794 (+9342.11%)
Mutual labels:  tiled
Melonjs
a fresh & lightweight javascript game engine
Stars: ✭ 3,721 (+19484.21%)
Mutual labels:  tiled
pcxtools
MSX cross-development command line tools PNG2MSX, PNG2SPR[+] and TMX2BIN
Stars: ✭ 17 (-10.53%)
Mutual labels:  tiled
tiled
Tiled TMX import for HaxePunk
Stars: ✭ 51 (+168.42%)
Mutual labels:  tiled
tuile
Tuile (french for tile) is a 2D graphics engine inspired from old hardware and based on layers, tiles sets, tile maps and sprites. Its scanline rendering pipeline makes it perfect for raster effects.
Stars: ✭ 19 (+0%)
Mutual labels:  tiled
tbag
Tea-bag is Third party extension utility project
Stars: ✭ 13 (-31.58%)
Mutual labels:  tiled

pixi-tiled

Tiled importer for Objects, Layouts, Texts and Shapes.

TILEMAPS

Basic Support since 1.1.14.

For faster realisation use pixi-tilemap, it will added as external renderer soon.

How to use

npm install pixiv5-tiled

Fully automatically importing. Images would be resolved automatically

import {Inject} from "pixiv5-tiled"
import * as PIXI from "pixi.js"

Inject(PIXI);

....

var loader = new PIXI.Loader();
loader.add("map","path/to/your/map.json")
      .load(()=>{
          //stage was builded automatically
          let stage = app.loader.resources["map"].stage;
      });

Manual

import {Inject, CreateStage} from "pixiv5-tiled"
import * as PIXI from "pixi.js"

//Inject only Mixins and apply global configuration 
Inject(PIXI, {injectMiddleware : false});

....

var loader = new PIXI.Loader();
loader.add("map","path/to/your/map.json")
    .add("atlass", "path/to/your/atlass.png)
    .load(()=>{

        const mapData = app.loader.resources["map"].data;
        const atlas = app.loader.resources["atlass"].spritesheet;

        //build manualy from map data and atlass
        const stage = CreateStage(atlas, map);
      });

Mixins

Inject add some mixins to PIXI API:

PIXI.Container:

  • getChildByPath<T>(path : string) : T | undefined - Search child of container by relative path
  • addGlobalChild(...childs : DisplayObject[]) : void - Adding childs to container from other container and recalculating them's transforms relative new parent

PIXI.DisplayObject:

  • replaceWithTransform (target : DisplayObject) - replaсe target into this from target parent container and copying it transforms (position, scale, rotation, pivot);

PIXI.utils.EventEmitter :

  • onceAsync(eventName : string, context : eny) : Promise<any> - call once in promise-like style for async/await support.

Demo

Go to demo folder: ./examples

Live:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].