Hacker News new | ask | show | jobs
by shareme 5271 days ago
no no no..a game developers do not use the same exact code for both iOs and Android..as the app life-cycle and other things are different enough that its a full port..especially when you consider that the UI is 70% of the code
4 comments

Yea no. Now that the NDK is somewhat decent, 95% of the code we write for a game is shared between iOS and Android. We have our own GUI layer as well because it was a cost effective choice when compared to the option of re-writing our UI for each platform for each game. The parent is very correct as well, lack of native code support is a HUGE problem if they expect to get a rich ecosystem of games for their smartphone platform.
Many (most? I imagine so) games of any complexity use a game framework, very often one that's cross-platform.
Both of them use OpenGLES, so really the UI is the same (imagine Angry Birds looking differently on the IOS platform than on Android).
UI code should be in the same portable OpenGL that the rest of your game is in.