pixijs / tilemap

Rectangular tilemap implementation for PixiJS
https://pixijs.io/tilemap/docs/
MIT License
288 stars 55 forks source link

Make Tiled demo #3

Open ivanpopelyshev opened 8 years ago

ivanpopelyshev commented 8 years ago

Choose some Tiled maps and try to show them with that renderer.

finscn commented 7 years ago

Is there any news ?

finscn commented 7 years ago

I've created one, and I'll give it to you later. ( after issue 18 , 19 & 20 are solved )

maltir commented 7 years ago

Does that mean pixi-tilemap work with tiled map?

ivanpopelyshev commented 7 years ago

People use it with tiled, because pixi-tilemap does not enforce any of formats, its just low-level plugin for renderer. I dont have tiled demo yet but i saw them :)

winniehell commented 6 years ago

I dont have tiled demo yet but i saw them :)

@ivanpopelyshev Where should such a demo be put? Would it be part of https://github.com/pixijs/examples?

ivanpopelyshev commented 6 years ago

@winniehell I'm going to create separated pixi-examples with all those plugins: spine, layers, tilemap, projection, heaven.

blurymind commented 5 years ago

the title of the issue here implies that we can now render tiled files. If so, what is the best tiled parser to use here? Do we have to write one from scratch?

ivanpopelyshev commented 5 years ago

I know several projects that made their own tiled parsers.

Also, there's a tiled parser that doesnt use pixi-tilemap: https://github.com/riebel/pixi-tiledmap

blurymind commented 5 years ago

Some of the Gdevelop devs are interested in adopting this, as a lot of people are requesting tiled support and GD uses pixijs for rendering. We are wondering what the best approach would be to implement it in GDevelop5

blurymind commented 5 years ago

@ivanpopelyshev on the readme, it says that tiled is on the "TODO". Does that mean that pixi-tilemap developers are planning to add built in support for parsing tiled files? This would really help projects like gdevelop in adopting it, as it will reduce the number of dependencies for the feature. Reading tiled files is a key reason we want to use pixi-tilemap, as well as the fact it is under the official pixijs git repo

Having one official tiled file parser under the pixijs team would really help us too. There are several on npm, but none are official and might become dead links in a few years

Check out our trello board - it is the most requested feature atm: https://trello.com/c/vJacNvXq/65-support-for-tilemaps-objects-tilesets-and-tiled-files-gdevelop-5-html5-games

ivanpopelyshev commented 5 years ago

It means that I'm still didnt use Tiled for any of my games => i didnt make a parser, but i saw several people do it.

Its not like its something difficult. pixi-tilemap is focused on low-level stuff, it doesnt care about parsing, it does work on graphics optimizations.

If you know general tilemap algoritms, you can use any, and pixi-tilemap provides a way to store tiles in a buffer and render them statically if clear() wasnt called. Imagine it as an alternative to PIXI.Graphics but with texture and without extra objects per tile.

ivanpopelyshev commented 5 years ago

wow, first time i see that app. I'll try it next month, i dont have time for it, sorry :)

AdrienLemaire commented 3 years ago

I'm afraid I still cannot find a working demo using pixi.js v5 and Tiled files (a png tileset image and a json map file containing one tileset and layers of zlib base64 data). Looking forward to seeing some progress on this issue.