Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen setup on mobile #37

Open
subsoap opened this issue Sep 23, 2019 · 3 comments
Open

Screen setup on mobile #37

subsoap opened this issue Sep 23, 2019 · 3 comments

Comments

@subsoap
Copy link

subsoap commented Sep 23, 2019

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
Copy link
Author

subsoap commented Sep 23, 2019

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.

@rgrams
Copy link
Owner

rgrams commented Sep 25, 2019

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.

@subsoap
Copy link
Author

subsoap commented Sep 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants