building a game for different resoulution phones

Posted by Jason on Game Development See other posts from Game Development or by Jason
Published on 2011-03-12T10:20:47Z Indexed on 2011/03/12 16:18 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

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

© Game Development or respective owner

Related posts about math

Related posts about android