How do you determine world coordinates for a 2d top-down “infinite” terrain map? Screen coordinates that I use to render everything are relative the viewable frame, and once I add a save-game feature the players starting point should be where they were when they last quit…
So I have one relative-based coord system, a player starting point that will likely not always be the same - how do I come up with a system of “fixed” coordinates that can be used to describe locations on the map?
I’ve asked this in multiple places and so far, no one’s had any ideas.
Example: Even though it’s 3d, Minecraft generates world coordinates that are some how tied to a fix point of the map. They’re not based on the player location and obviously don’t depend on translating the screen coordinates.
Thanks!