Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Tablet dimensions?

Author
Message
Scribble
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 2nd Apr 2017 19:26
Hello everybody, I have a question regarding tablets dimension.

When we set the device orientation for portrait- only game, we use
SetOrientationAllowed( 1, 0, 0, 0 )

My question is, does portrait mode for smartphone is the same as portrait mode for tablets?
On smartphones, portrait means the height> width.
Is it the same case for tablets?

Me and everybody I know don't have a tablets, so i can't test this myself.
Anybody with a tablet can clarify this?
Thanks in advance.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Apr 2017 19:55
I'm pretty sure Portrait is the same on all devices.

You can always add some checks though, by using GetDeviceWidth() and GetDeviceHeight() and then checking which is bigger?
Scribble
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 2nd Apr 2017 20:18
Yep I will do that.

Any other general changes or tips to optimize apps (originally made for smartphone) to make it compatible with tablets?
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Apr 2017 21:43
The only other suggestion I could make is that GetDeviceDPI() can be used to calculate screen size, and on larger displays you could reduce the size of the on screen controls and buttons so they don't appear giant.
Scribble
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 3rd Apr 2017 05:49
Thank you.
So far I've used my own 'universal unit' for sprite sizes so they appears the same on all device, but GetDeviceDPI() sounds like useful.

Login to post a reply

Server time is: 2024-11-22 09:10:07
Your offset time is: 2024-11-22 09:10:07