Tuesday, April 17, 2012

Tileset loading

The client can now work with tilesets and doesn't require a separate image file for every tile type.

I did a small modification at the server to remove the relative paths from the tilesets in the JSON code provided by Tiled and leave only the filename. That way I don't have to worry about where to save the map files before copying them to the server. The drawback is that I can't organize my tilesets in directories, but I don't believe that I will have so many tilesets that this becomes a problem.

No comments:

Post a Comment