zoomEven scale method


(mikale) #1

Hi all, posted this in the HaxePunk forums but I am posting here to possibly get extra insight.

I’m having a hard time figuring this out, I really wish there was an official tutorial for developing for multiple screen sizes but this is what I want to do. I want to use the zoomEven scale method for my game, taken from Corona SDK’s documentation:

The letterbox method is outdated and no longer accepted by Apple. The second method works for me when I code in Corona because I use fairly hi res assets and I’m not too picky about a slight bit of upscaling or downscaling. I just need to be able to add something to my startup code so I can develop my game for one screen size, and it will scale it up or down, and center it accordingly (in portrait or landscape).

Any help would be very appreciated! :slight_smile: Thanks!