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 / new Ipad resolution. Best way to work

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 25th Mar 2012 21:29
The new iPad has a resolution of 2048 x 1536.

My Windows desktop has a resolution of 1280 x 1024.

What is the best way to work with 2048 x 1536 and rescale the AppGameKit window easily for testing on Windows?
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 25th Mar 2012 23:22
I would say using the percentage system (SetDisplayAspect) with the setup files dictating a screen size of 1024x768 remembering that the Aspect Ratio is the same as 2048*1536.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 25th Mar 2012 23:32
I don't use the % system.

Is there any other easy option?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 25th Mar 2012 23:37
Just altered screen size values in Core.cpp (T2) and everything resized down accordingly, even though I don't use the % system!

The Virtual Resolution system works really well!

Great!
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 25th Mar 2012 23:42 Edited at: 25th Mar 2012 23:46
Ahh true, setting the screen values as 1024x768 and then the virtual res to 2048x1536 should work very nicely.

Quote: "I don't use the % system."

Why not?

Edit: Disregard the above question, I misinterpreted it.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 25th Mar 2012 23:57
never got the hang of working with % values

i always used pixel values.
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 26th Mar 2012 00:56
That's no reason for someone else not using it
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Mar 2012 13:29
I use the percentage system and love it! In my opinion, it offers the best way to make apps across many devices without having to worry about aspect ratios.

My signature is NOT a moderator plaything! Stop changing it!
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Mar 2012 15:09 Edited at: 26th Mar 2012 15:15
I wonder how to get sprite's Y and then move your sprite to be just below it. In virtual resolution you could simply do it this way:



But I'm not sure about percentage system.


Besides, I yet prefer virtual resolution . It's easier to handle it. ( for me )

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Mar 2012 15:35
Quote: "But I'm not sure about percentage system."

It's exactly the same.

Using the percentage system is the same as setting the resolution to 100.0 x 100.0. The only change to a fixed resolution is that the virtual width and height go up to 100.0, and the viewable screen is automatically scaled to the devices native resolution.

My signature is NOT a moderator plaything! Stop changing it!
Caps On!
13
Years of Service
User Offline
Joined: 3rd May 2011
Location:
Posted: 26th Mar 2012 17:31
I have also come to like the percentage system versus the virtual resolution system. I had trouble filling the entire screen on devices with virtual resolution, but with the percentage system I don't have to worry about how my program will look on a device, it will fill the entire screen perfectly regardless.

Truth, Justice, and the Programmer's Way!

Login to post a reply

Server time is: 2024-11-23 07:53:40
Your offset time is: 2024-11-23 07:53:40