本文介绍了一个C#的游戏统治他们(的iOS,安卓,WP7,W7,Mac OS X和XBOX)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我学习C#,只是想到了一个很酷的想法。考虑到比赛是很简单的。说,一个典型的文本输入风格的游戏翻拍,一个C#游戏理论上可以移植到所有我上面列出的平台上的,很少以原始出处code没有变化,是否正确?

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?

显然,UI将不得不进行调整,而且我很怀疑这样的比赛将在每个平台真正生存!

Obviously the UI would have to be tweaked, and I highly doubt such a game would really survive on each of those platforms!

不过,虽然C#确实是MS重,通过不同的方法,可以工作,对不对?或者说,我将不得不更改C#源Objective-C的?难道Android的甚至有他们支持苹果和MS的官方语言吗?

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?

这是一种奇怪的问题,但如果这是真的,那么C#是真的,即使它主要是基于并赞同MS一个很好的通用语言。

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.

首先回答你的问题:是的,它会工作。不,你不会有移植到Objective-C的。 Android的应用程序经常使用Java。

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...

我听到好东西 MonoTouch的和的使用.NET跨平台开发,C#。

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.

重要的是,在9月9日,苹果放宽了指导方针,$被释放到市场上使用MonoTouch的内置pvented p $ pviously $ P $应用程序。

Importantly, on Sept 9, Apple relaxed their guidelines that previously prevented apps built using Monotouch from being released in the marketplace.

通过苹果的App Store审查指南的声明

特别是,我们正在放宽对开发工具的所有限制  用于创建iOS应用程序,只要  所产生的应用程序不会下载任何  code。这应该给开发商  灵活性,他们想要的,而  preserving我们所需要的安全性。

此外的利益,从克雷格邓恩的博客...

Also of interest, from Craig Dunn's blog...

ConceptDev(克雷格·邓恩的博客):MonoTouch中相遇的WindowsPhone7

这篇关于一个C#的游戏统治他们(的iOS,安卓,WP7,W7,Mac OS X和XBOX)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 00:59