Universal Binary Numbers - For Android Devices?
TomCoffee
Member, PRO Posts: 175
Sooo... I've been reading all this cool stuff about making rules to change the camera size and origin to build one game that fits pretty well on all iOS devices. Thank you to all of you who have figured out the numbers needed to make everything look good on specific devices....
My question is: could this rule-based camera size and offset thing be extended a little bit for the 3 or 4 most common Android tablet resolutions? I'm thinking:
Device - Height x Width
Kindle Fire/Nook Color - 1024 x 600
KindleFire HD 7" - 1280 x 800
KindleFire HD 8.9" - 1920 x 1200
Galaxy S III (and many others) - 1280 x 720
In theory, then, you could build ONE game with one set of graphics and it would pretty much be resized to all the most common resolutions on the fly... I'm not sure if there's specific math being used to figure out the offsets or if it's a little bit of trial-and-error (or perhaps both)...
Or am I totally off base?
My question is: could this rule-based camera size and offset thing be extended a little bit for the 3 or 4 most common Android tablet resolutions? I'm thinking:
Device - Height x Width
Kindle Fire/Nook Color - 1024 x 600
KindleFire HD 7" - 1280 x 800
KindleFire HD 8.9" - 1920 x 1200
Galaxy S III (and many others) - 1280 x 720
In theory, then, you could build ONE game with one set of graphics and it would pretty much be resized to all the most common resolutions on the fly... I'm not sure if there's specific math being used to figure out the offsets or if it's a little bit of trial-and-error (or perhaps both)...
Or am I totally off base?
Comments
The key would be that most of the Android tablet/phone resolutions are closer to the iPhone ratios than the iPad ratios.... So all my Android apps may look a little squished... though I suppose I could apply the same camera rules to actors if I wanted to "square" them out a little bit...
A little work up front to figure out the numbers could save hundreds of hours over the course of a year... Hmm...