One C# game to rule them all(iOS, Android, WP7, W7, Mac OS X and XBOX)

By : Qcom

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.

By : Qcom


You may be better off sticking to C , for which iOS and Android have native support.

There's no reason to need C#, after all you can use for development :) (no joking, its a better language especially considering the embedded xml support VB has)

However, for mobile development, I think you're going the wrong route for cross-platform development. For this, you're always going to get 80% of the coverage, that last 20% is going to be a pain. For example, if you choose C#, you'll get Windows and XBox, but not Playstation and very poor iPhone.

So, you need the lowest common demoninator - and that's probably C . You can put a Qt GUI on top (with the excellent QML which is possibly the best UI tech at the moment), and that'll run on most platforms - including Android. But not WinPhone7. C is still a good option for all platforms as even Windows will run it (C /CLI) and there's easy bridge between objective-C and C anyway. Your best option is probably to go that route (and a lot of games development is done in C anyway so its not wasted effort).

Chances are though, you're not ever going to get a single codebase to work well enough on all platforms. Perhaps javascript would be the ultimate though, as MS' Bob Muglia has said they're not focussing on Silverlight anymore, preferring HTML5 javascript for cross platform work.

By : gbjbaanb

I am not a game development expert, but here my 2 cents,

You dont have any problems with developing games in c# targets all the platforms, mono c# runs sucessfully in all above said plaforms including monodroid - andriod and MonoTouch - iphone.

But the problem is specific to the graphic libraries you are going to use. For example Xbox libraries only targets windows. But if you stick with openGL, you may solve the problem.

By : RameshVel

This video can help you solving your question :)
By: admin