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

Hey, I'm learning C # and just thought of a cool idea. Given that the game was quite simple. Say, a remake of a classic text-style game, a C # game could theoretically be ported to all the platforms listed above without changing the source code, right?

Obviously, the user interface needs to be changed, and I doubt very much that such a game will really survive on each of these platforms!

But, although C # is really MS heavy, using different methods that can work, right? Or, do I need to change the C # source to Objective-C? Does Android even have an official language that they support, such as Apple and MS?

This is an odd question, but if so, then C # is really a good universal language, although it is largely based and approved by MS.

+6
android c # windows ios windows-phone-7
source share
5 answers

I decided to post the answer because I thought of a few more important things.

First answer your questions: Yes, it will work. No, you will not need to port to Objective-C. Android applications often use Java.

And a little more background ...

I hear good things about MonoTouch and MonoDroid for cross-platform development using .Net, C #.

You have already agreed that you have to process the user interface layers specifically for each platform, so you are on the right track.

It is important to note that on September 9, Apple softened its recommendations, which previously hindered the release of applications created using Monotouch on the market.

Apple App Store Review Guideline Statement

In particular, we relax all restrictions on the development tools used to create iOS applications until the resulting applications download the code. This should give developers the flexibility they want while maintaining the security that we need.

Also interesting is Craig Dunn's blog ...

ConceptDev (Craig Dunn Blog): MonoTouch Matches WindowsPhone7

+11
source share

This is mainly pipedream, you can use C # / XNA to create a Windows / Xbox / WP7 game, and probably use C # through Mono / MonoTouch to implement OS X / iOS. Android currently does not have a suitable monoprogram to support this.

This does not mean that it is discouraging, also MS gave the language to the C # community so that it would be positive.

http://www.microsoft.com/interop/cp/default.mspx

+6
source share

I'm not an expert on game development, but here are my 2 cents,

You have no problems developing games in C # for all platforms, mono C # runs successfully in all of the above plugins, including monodroid - andriod and MonoTouch - iphone.

But the problem is specific to the graphics libraries that you are going to use. For example, Xbox libraries are for windows only. But if you stick with openGL, you can solve this problem.

+4
source share

You might be better off sticking with C ++, for which iOS and Android have built-in support.

+1
source share

There is no reason for the need for C #, because you can use Vb.net to develop ASP.net :) (don’t joke, its the best language, especially considering the built-in support for VB xml)

However, for mobile development, I think you are following the wrong route for cross-platform development. To do this, you will always get 80% coverage, and the last 20% will be sick. For example, if you choose C #, you will get Windows and XBox, but not a Playstation and a very bad iPhone.

So you need the lowest common daemon - and possibly C ++. You can put the Qt GUI on top (with great QML, which is arguably the best UI technology at the moment), and this will work on most platforms, including Android. But not WinPhone7. C ++ is still a good option for all platforms, as even Windows will launch it (C ++ / CLI), and it easily connects between objective-C and C ++. Your best option is probably to go this route (and in any case, the development of games in C ++ will continue, so it has not been wasted).

Most likely, you will never get one code base to work well enough on all platforms. Perhaps javascript will be the final one, although MS " said Bob Maglia , they no longer focus on Silverlight, preferring HTML5 + javascript for cross-platform work.

+1
source share

All Articles