Hello guys,
Is there a way to optimize Tiled maps for automatic image scaling ?
If you used tiled bfore, you know that you have to specify tile widthxheight and amount of tiles to use for application width and height. Is there a dynamic way to adjust also the tile sizes for the tiled output Lua files or do I need to design each tiled map for every resolution ?
Comments
TileMap class automatically adjusts the tile widths/heights according to the automatic image scaling. Therefore you only need to specify the tile width/height related to the base image and let Gideros calculate the scaled tile width/height internally.
I'm attaching an example project. The @2x image is painted with a blue pen so that you can easily see which image is loaded. If you run this project with iPhone and iPad resolutions, you will see when high resolution image is loaded, tile sizes are also scaled automatically.
Likes: Teranth, twisttap