how can i run my game into 480 x 320 and 800 x 480 resulotion ??
its posible ?
how can i run my game into 480 x 320 and 800 x 480 resulotion ??
its posible ?
You really don’t with Corona SDK. What you do is declare a “content area” that you want to work with, it could be 1000 x 1500 if you wanted. This is your coordinate system. Then Corona will adjust your values to that for the physical device.
Now you do have to do something to manage the fact that the aspect ratio of a 320x480 device is 1.5 to 1, vs. the 800 x 480 which is more like 1.777778 to 1 (3:2 vs. 16:9). There are several strategies to manage your app on multiple aspect ratio devices. However, we recommend two tutorial blogs. Read them in order:
http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/
http://www.coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/
The second one is a simpler approach to the first one, but the first one cover’s important concepts like how to build background’s and position things. But at the end, your config.lua will adapt to the device while giving you a constant coordinate system to use.
Rob
You really don’t with Corona SDK. What you do is declare a “content area” that you want to work with, it could be 1000 x 1500 if you wanted. This is your coordinate system. Then Corona will adjust your values to that for the physical device.
Now you do have to do something to manage the fact that the aspect ratio of a 320x480 device is 1.5 to 1, vs. the 800 x 480 which is more like 1.777778 to 1 (3:2 vs. 16:9). There are several strategies to manage your app on multiple aspect ratio devices. However, we recommend two tutorial blogs. Read them in order:
http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/
http://www.coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/
The second one is a simpler approach to the first one, but the first one cover’s important concepts like how to build background’s and position things. But at the end, your config.lua will adapt to the device while giving you a constant coordinate system to use.
Rob