-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Infinite maps #10
Comments
Can you provide small sample tmx file for that? |
Here's a TMX |
I've taken a look at this issue and looks like the problem is that Tiled uses a different format for infinite maps. <data encoding="csv">
<chunk x="0" y="0" width="16" height="16">
...
</chunk>
<chunk x="16" y="0" width="16" height="16">
...
</chunk>
<chunk x="32" y="0" width="16" height="16">
..
</chunk> We can "easily" parse all the chunks and load everything into layer.Tiles but I'm worried about really big maps. I think there should be a way to get data as chunks. My initial proposal after 10 minutes of thinking is to add a new type "Chunk" that will store a slice with the tiles of that chunk pointing to the layer.Tiles slice. This way we keep compatibility for simple maps and allow a controlled way of parsing huge maps. |
go-tiled
currently has no functionality to load infinite maps and will panic when this is attempted:The text was updated successfully, but these errors were encountered: