building a game for different resoulution phones
- by Jason
Hi,
I am starting some tests for building a game on the android program.
So far everything is working and seems nice.
However I do not understand how to make sure my game looks correct on all phones as the all will have slightly different screen ratios (and even very different on some odd phones)
What I am doing right now is making a view frustrum ( could also be ortho ) which I set to go from -ratio to +ratio ( as I have seen on many examples) however this causes my test shape to be stretched and sometimes cut off by the edge of the screen.
I am tilting my phone to landscape to do my tests ( a bit extreame) but it should still render correctly if I have dome things right.
Should I be scaling by some ratio before drawing or something?
An example would be greatly apriciated
PS
I am doing a 2d game