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.

AppGameKit Classic Chat / Starting out with resolutions

Author
Message
Doveyy04
12
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 7th May 2012 15:39
Ok am new to AppGameKit and want to write a game for the Iphone but also to work on Andriod Devices, I hear the Iphone 4 is different resolution to Iphone 3GS. So what resolution do I start with that will work on all Mobile devices. I also want the game to be Lanscape only so what do I do to make this happen so when I plays on Mobile Devices it goes Landscape and cant be changed
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th May 2012 17:32
The iPhone 4 has twice the visual resolution (called a Retina Display) as the iPhone 3 and iPad Touch. But it displays the iPhone 3 resolution images just fine.

My game is also meant to play in landscape only mode. The landscape resolution for the iPhone 3 is 960 by 640.

I am also testing my game on an Android device and it seems quite happy with that resolution.

You use the 'SetOrientationAllowed' command to force the game to stay in landscape mode, even when the device is turned.

Cheers,
Ancient Lady
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 7th May 2012 18:11
use 960 x 640. this is the default res of the iphone 4 and 4s and latest gen of ipod touch.

on iphone 3gs and lower, agk will automatically half the res for you.

for android you might want to pic a different aspect ration screen size. there are so many different res there, that i gave up myself!
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 7th May 2012 18:59
Why don't you use SetVirtualResouliton() instead, that will make it work on all screen sizes without having to port it...

Login to post a reply

Server time is: 2024-11-23 10:25:59
Your offset time is: 2024-11-23 10:25:59