Question about X and Y coordinates for GS and iDevice
Player_E
Member, PRO Posts: 604
I was doing some thinking and would like to know how exactly the (X,Y) is set up on both GS and iDevice.
iDevice:
For this I will use iPhone. While holding the iPhone like you would normally do with the home button on the bottom. the (X,Y) are normal. Where the X runs horizontal and Y runs vertical. My question about this is the following.
Do the coordinates (0,0) Start in the middle of the iPhone, or the bottom left corner making the iPhone screen quadrant 1.
In GS:
When creating a new project you are looking at the GS screen display which is an iDevice tilted horizontal. My questions are as followed.
1. Do the coordinates for the iPhone stay the same, so in reality when looking at the GS display with iPhone tilted horizontal Y now runs horizontal and X vertical?
2. In this display do coordinates (0,0) start in bottom left corner, or in middle?
I would check these myself, but I am actually at work atm.
iDevice:
For this I will use iPhone. While holding the iPhone like you would normally do with the home button on the bottom. the (X,Y) are normal. Where the X runs horizontal and Y runs vertical. My question about this is the following.
Do the coordinates (0,0) Start in the middle of the iPhone, or the bottom left corner making the iPhone screen quadrant 1.
In GS:
When creating a new project you are looking at the GS screen display which is an iDevice tilted horizontal. My questions are as followed.
1. Do the coordinates for the iPhone stay the same, so in reality when looking at the GS display with iPhone tilted horizontal Y now runs horizontal and X vertical?
2. In this display do coordinates (0,0) start in bottom left corner, or in middle?
I would check these myself, but I am actually at work atm.
Comments
0,320 is top left
480,0 is bottom left
480,320 is top right.
240,160 is middle
if you are working in portrait mode with the home button at the bottom:
0,0 is bottom left
0,480 is top left
320,0 is bottom right
320,480 is top right.
160,240 is middle
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left