Overview
I have two styles to go along with:
asset_trackinggiven in thebevy_new_2dtemplateResourceReaderfrom craters-tiled, thisread_from.
What solution? Your code seems working
This does not work when read_from goes nested/recursive, it's a bit tone deaf for various file structures given for example a non-technical teammate using the editor only or being in such confinement.
Recursive on what? Background knowledge please
This map file (called "tmx") can either embed a tileset or reference another xml file called tileset (tsx, huh?).
Example of such tsx file (if i add, say, assets/tiled/tiles/dg_under_the_castle-10.tsx):
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.2" name="dg_under_the_castle-10" tilewidth="16" tileheight="16" tilecount="560" columns="28">
<image source="dg_under_the_castle-10.png" width="448" height="320"/> <!-- This path can vary --->
<tile id="200">
<!-- ... --->
</tile>
<tile id="201">
<!-- ... --->
</tile>
<!-- ... --->
</tileset>
Wouldn't it be so much to work on?
- I already yoinked rs-tiled: ready to tweak from both ends.
What I do NOT want to do:
- Cutting out
rs-tiledand using something like custom XmlAsset.
What I may want to do:
- Using
load_folderthroughfrom_world