rendercam icon indicating copy to clipboard operation
rendercam copied to clipboard

Screen setup on mobile

Open subsoap opened this issue 5 years ago • 3 comments

I have a 640x960 game area I want to fit the screen area to 640x960 so that the width is always fit if possible while also respecting fixed aspect ratio, but I still want to draw the stuff outside of the area, especially vertically. Is this possible now?

I'm testing the settings now to try and get this but am also finding that there are display differences between desktop/Android target for whatever reason... I can make some samples and send screenshots.

subsoap avatar Sep 23 '19 12:09 subsoap

After reading the docs again more carefully it seems Use View Area not being checked is reason of mobile vs desktop differences?

What I want is fixed width like this

2019-09-23 05_29_20-Pixcade Chick - Defold Editor 2 0

But the top/bottom area still drawn.

The Fixed Width checkbox doesn't seem to do this.

subsoap avatar Sep 23 '19 12:09 subsoap

So you checked "Use View Area", set the view area X to 640, checked "Fixed Width", and made sure all other scale modes are un-checked?

Yeah, we really need a fixed aspect ratio mode that still uses the full window (no black bars). Last time I checked it was not just a trivial change, but it's definitely something I want to add.

Yeah, if you don't check "Use View Area", then it uses the current window resolution when the camera is init, so this can easily be different on mobile. I'll need to rethink this for a future version.

rgrams avatar Sep 25 '19 15:09 rgrams

At the moment I'm using these settings and it seems to work for the most part as long as the window is roughly portrait.

2019-09-25 09_29_38-Pixcade Chick - Defold Editor 2 0

subsoap avatar Sep 25 '19 16:09 subsoap