Universal Binary Numbers - For Android Devices?

TomCoffeeTomCoffee 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?

Comments

  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    Android apps from GS have basically always been a universal apps, as they function the same on most android devices. With the overscan feature that GS implemented, it was fairly easy to do exactly what you're asking. That is, created one file and adjust camera based on potential sizes. This works really well when you're submitting to Amazon/Barnes, since these have defined sizes. However, you'll run the risk of having awkward cuts on Google Play, as the ratios differ from device to device. However, aiming for the 1280X720 would probably be ideal for most devices. Since overscan was implemented, my base project is always Iphone5 size, and I adjust from there.
  • TomCoffeeTomCoffee Member, PRO Posts: 175
    Well, okay... My apps are pretty simple but I see the potential efficiency in creating the app ONE time and then never having to resize or create two or three sets of graphics.

    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...
Sign In or Register to comment.