I am convert object position from a infinite map to a fixed map outside of the editor. What’s the easiest way to calculate the new position?
Say I have an infinite map like this:
And I have parse and serialized the map into a fixed map like this:
I need to shift these object positions correctly, but because the origin object x/y use is implied and not explicitly stored, I am not sure how I can calculate that.
To add, my tile layer boundaries are calculated using min/max x/y values, so the generated fixed map is always as small as possible, it is different from Tiled editor’s conversion.