tilemap icon indicating copy to clipboard operation
tilemap copied to clipboard

Make Tiled demo

Open ivanpopelyshev opened this issue 8 years ago • 13 comments

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

ivanpopelyshev avatar Nov 05 '15 00:11 ivanpopelyshev

Is there any news ?

finscn avatar Jan 11 '17 08:01 finscn

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

finscn avatar Aug 16 '17 22:08 finscn

Does that mean pixi-tilemap work with tiled map?

maltir avatar Aug 31 '17 16:08 maltir

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 :)

ivanpopelyshev avatar Aug 31 '17 17:08 ivanpopelyshev

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?

winniehell avatar Jan 01 '18 01:01 winniehell

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

ivanpopelyshev avatar Jan 01 '18 09:01 ivanpopelyshev

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?

blurymind avatar Feb 07 '19 13:02 blurymind

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

ivanpopelyshev avatar Feb 07 '19 13:02 ivanpopelyshev

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 avatar Feb 07 '19 18:02 blurymind

@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

blurymind avatar Feb 07 '19 18:02 blurymind

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 avatar Feb 07 '19 20:02 ivanpopelyshev

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

ivanpopelyshev avatar Feb 07 '19 20:02 ivanpopelyshev

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.

AdrienLemaire avatar Nov 24 '20 03:11 AdrienLemaire