Scaling game affect UI

Hi friends,

I have doubt here. i have corona based game with resolution 320x480. i would like to port it to different app that has resolution 1280 X 1920 (320*4 X 480*4), ends up all the game ui messed up. How i can fix this issue? Is it possible to have two different config file for different scene. Because the game have a great number of modules to be modified if i did it manually.Highly appreciate ideas/approach that can fix this issue without further modification on the game side.[For CORONA STAFF,please help me to fix this issue,as you know about the background mechanism approach of config files for Corona apps.]

Thanks alots :slight_smile:

Highly need help of pro programmers  :frowning:

Hi @geshd91,

You can’t have different config.lua files for different scenes. However, there are usually ways to work with one content area size to accomplish different UI layouts.

Can you specify what you mean by “the UI is messed up” when you change to a higher content area size? What in specific is happening?

Brent

Hi Brent,

I create a game that used resolution of 320 X 480, and i initially positioned  all the widgets and text relative to the resolution, when i import the game to different app with bigger resolution, the widgets and text looks smaller and the position is misplaced. How i can i retain the original widget size and position if i import it to bigger resolution(320*4 X 480*4).

Thanks alots Brent

geshd91

Widgets are designed for 320 x 480 content areas.  They don’t scale up for larger content areas.  If you need to use widget, keep your content area at 320 x 480.

Rob

Hi Rob,

Thanks alots for the reply.

Is it possible to scale on ratio based,and its important for scaling as the whole game looks small in the new resolution configuration.

Thanks

geshd91

I’m not sure I follow what you’re asking.

Rob

Highly need help of pro programmers  :frowning:

Hi @geshd91,

You can’t have different config.lua files for different scenes. However, there are usually ways to work with one content area size to accomplish different UI layouts.

Can you specify what you mean by “the UI is messed up” when you change to a higher content area size? What in specific is happening?

Brent

Hi Brent,

I create a game that used resolution of 320 X 480, and i initially positioned  all the widgets and text relative to the resolution, when i import the game to different app with bigger resolution, the widgets and text looks smaller and the position is misplaced. How i can i retain the original widget size and position if i import it to bigger resolution(320*4 X 480*4).

Thanks alots Brent

geshd91

Widgets are designed for 320 x 480 content areas.  They don’t scale up for larger content areas.  If you need to use widget, keep your content area at 320 x 480.

Rob

Hi Rob,

Thanks alots for the reply.

Is it possible to scale on ratio based,and its important for scaling as the whole game looks small in the new resolution configuration.

Thanks

geshd91

I’m not sure I follow what you’re asking.

Rob