Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have just made my first game for iOS and submitted it to app store. I was thinking of porting my game to Android also. I would like to know things one need to do/remember to port game made for iOS in Unity to Android. How to handle different screen resolutions and pixel densities, optimizations required, etc. Any other suggestions and important things you think I should know?

EDIT: Also, should I handle builds according to device resolutions or by pixel density?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This is all very game specific.

It all depends on how your game handles its UI and the size of things on screen to determine how you're going to solve the pixel density and resolution disparity issues (which should be pretty similar to how you're solving iPad vs iPhone, assuming you are).

Any optimizations you're doing for the iOS version should apply to the Android version. You really just need to get a couple of target devices and test on them.

As for specifics, if you're not using OpenGLES 2.0 and you are doing fixed function shader stuff you need to realize that you have fewer texture stages on Android hardware than on iOS hardware. It's generally 2 instead of 4 I think.

One thing that Android users are used to that you'll have to add is soft "back" button support. Basically check for KeyCode.Escape and go "back" where appropriate. I think this also includes exiting the application if you're, for example, on the main menu.

share|improve this answer
    
Thanks again @Tetrad for reply! I'm already halfway with iPad thing. I'm using OpenGLES 2.0 so there should not be any problem there. So next step should be getting different resolution android devices for testing and adding back button support. :D –  2600th Jan 20 '12 at 18:26
    
+1 for the back button. –  John McDonald Mar 20 '12 at 21:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.