Loading a standard tileset JSON is pretty simple, but how do you load a tileset JSON when it is optimized (Run-length encoding)?
Standard tileset JSON:
Optimized tileset JSON:
Current way I'm loading the JSON:
Scirra article on run-length encoding:
https://www.scirra.com/blog/ashley/3/te ... ap-tidbits
I'm guessing I can't load them into an array unless I parse them since the numbers have an x between the numbers?
Develop games in your browser. Powerful, performant & highly capable.
and why exactly .. you need a array?
you can load tilemap directly....
korbaach Oh my gosh! That worked! Why was I trying to be so complicated? I think because everything I researched was talking about arrays. Thank you!