Second tileset needs ID accomodation #18
Labels
core engine
Issues on the client-side of the game engine.
enhancement
When functionality needs to be changed or updated.
front end
Relating to code and client-side script of the game.
medium priority
It would be awesome if this was done, but not very critical.
medium
Tasks/features that were not easy to implement -- nor hard. Just time-consuming; maybe.
tools
Issues and features of the tools to help build Delaford.
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Anytime we reference a
backgroundTile
, we have to accomodate the Tiled export. Like this:https://github.com/Navarra/game/blob/6722b7d5a57643e1020b1078995e6c00d16f064e/src/core/map.js#L180-L195
https://github.com/Navarra/game/blob/6722b7d5a57643e1020b1078995e6c00d16f064e/src/core/map.js#L305
This is because Tiled has a
gid
and if I wanted to have a tile ID start from 0 for each tileset... well, from the creator:Because what if each layer has associated with their own tileset?
If this is a feature request, what is motivation or use case for changing the behavior?
Cleanliness and less-hacky way.
I think the solution may lay in the Tiled editor program that Navarra uses. But my degree of expertise is not as much as I would like. If you know of a solution, send a PR!
The text was updated successfully, but these errors were encountered: