Tile Map Questions

When creating a map in tiled map editor, the tool ask for a map size.

Like 50 x 50 using each tile with 32 px would result in : 1600 x 1600 pixels.

I want to create a level using this tool for my game. But, i just want to cover the hole screen of the device without having to scroll the map. 

Each device has a resolution, how do i accomplish that? If i build using a iphone resolution i don’t think it will work for other devices even if using the ultimate config file.

PS: Using MTE engine.

Corona’s scaling mechanics between devices handles fitting your display objects to different aspect ratios.

Are you seeing strange results when attempting to scale objects between devices? I know Lerg just made some posts about a new “ultimate config file” that might be helpful.

https://github.com/Lerg/awesome-config-lua

Alex@PaNc, as a matter of fact i’m using his config.lua.

But when using tiled map, corona will handle the map as one single image? 

Because if using 32x32 px tiles as i mentioned earlier it would be something like:

960 x 640 (iPhone 4):

960/32 = 30

640/32 = 20

Resulting in: 30x20 Tiles in that screen.

When dealing with iPad Retina - 1536 x 2008:

48x62 tiles.

Should i pick one of those resolution? 

The issue lies with using a constant value for your tile sizes. You’re going to want to use a value that’s based on the size of your device. Some combination of display.contentHeight/contentWidth. I think I was using display.actualContentHeight/Width at one point, but I’m away from my machine and can’t check.

It also looks like the MTE Dev has suggestions on how to accomplish this as well:

http://forums.coronalabs.com/topic/40389-tilemap-alignment/

Thanks Alex! Haven’t seen this topic before. Even if some points in that topic is outdated it helped me to understand the concept a little bit. I’m playing with some values, hope it will lead me to the right direction. 

Corona’s scaling mechanics between devices handles fitting your display objects to different aspect ratios.

Are you seeing strange results when attempting to scale objects between devices? I know Lerg just made some posts about a new “ultimate config file” that might be helpful.

https://github.com/Lerg/awesome-config-lua

Alex@PaNc, as a matter of fact i’m using his config.lua.

But when using tiled map, corona will handle the map as one single image? 

Because if using 32x32 px tiles as i mentioned earlier it would be something like:

960 x 640 (iPhone 4):

960/32 = 30

640/32 = 20

Resulting in: 30x20 Tiles in that screen.

When dealing with iPad Retina - 1536 x 2008:

48x62 tiles.

Should i pick one of those resolution? 

The issue lies with using a constant value for your tile sizes. You’re going to want to use a value that’s based on the size of your device. Some combination of display.contentHeight/contentWidth. I think I was using display.actualContentHeight/Width at one point, but I’m away from my machine and can’t check.

It also looks like the MTE Dev has suggestions on how to accomplish this as well:

http://forums.coronalabs.com/topic/40389-tilemap-alignment/

Thanks Alex! Haven’t seen this topic before. Even if some points in that topic is outdated it helped me to understand the concept a little bit. I’m playing with some values, hope it will lead me to the right direction.