Hey, I’m learning C# and just thought of a cool idea. Considering that a game was simple enough. Say, a remake of a classic text-entry style game, a C# game could theoretically be ported to all of the platforms I listed above, with little to no change of the original source code, correct?
Obviously the UI would have to be tweaked, and I highly doubt such a game would really survive on each of those platforms!
But, although C# is really MS heavy, through different methods, that could work, right? Or, would I have to change the C# source to Objective-C? Does Android even have an official language that they support like Apple and MS do?
This is kind of an odd question, but if this is true, then C# is really a nice all-purpose language even though it’s largely based on and endorsed by MS.
I decided to post an answer cause I thought of a few more relevant things to say.
First to answer your questions: Yes it would work. No, you wouldn’t have to port to Objective-C. Android’s apps often use Java.
And a bit more background…
I’m hearing good things about MonoTouch and MonoDroid for cross platform development using .Net, C#.
You’ve already accepted that you’ll have to handle UI layers specifically for each platform, so you’re on the right path.
Importantly, on Sept 9, Apple relaxed their guidelines that previously prevented apps built using Monotouch from being released in the marketplace.
Statement by Apple on App Store Review Guidelines
Also of interest, from Craig Dunn’s blog…
ConceptDev (Craig Dunn’s blog): MonoTouch meet WindowsPhone7