c# - 多平台2D游戏引擎

标签 c# android ios cross-platform game-engine

<分区>

我正在创建一个 2D 游戏,我希望跨平台运行(在 Windows、Mac、iOS 和 Android 等平台上作为主要目标)并且我使用的引擎需要是开源的。 主要目标是获得最大的代码可移植性(可能通过脚本)。

更愿意在 C# 中执行此操作,但如果必须的话,使用另一种语言也不是什么大问题。

我考虑过使用 Flex SDK 的 MonoGame 和 flash,因为它们都声称是跨平台和开源的。

考虑到我的标准,其中哪一个是更好的选择?或者另一个游戏引擎/库会更合适吗?

最佳答案

我会建议 Unity3D .这是一个3D平台。但是,如果您只使用 2 个维度,那么您就可以开始了。在 Unity3D 中,您可以使用 C#、Javascript 或 Boo 编写游戏。

Unity 是免费的,可以导出到 Windows Phone、Windows 8 App、Windows、Mac、Linux、Android、Blackberry、iOs、Xbox360、Wii 和 PS3,但对于最后 3 个,您需要 Microsoft/Sony/Nintendo 的开发者许可.但可能性是存在的。

更新

您之前必须为 ios 和 android 插件付费。现在它们是免费的:

Today, we’re taking another step on this long road: as of right now, independent Unity developers will be able to deploy their games to Android and iOS platforms completely free of charge. Update Unity and you will find Android and iOS build options (previously basic add-ons) ready and waiting for you to use.

来源:http://blogs.unity3d.com/

同时,对其他平台的支持也出来了(包括windows phone、winrt & blackberry)。这些都是免费的。如果您想要专业功能,您需要专业许可证。但是您需要的大部分内容都在免费版本中。比较看this page .

关于c# - 多平台2D游戏引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18230834/

相关文章:

c# - 使用字符串变量设置 'Class = new <string of Class()>'

android - 安装软件遇到问题... - android

c++ - XCode 5 不会破坏 C++ 模板

ios - arm64 标志类似于 arc 标志 (-fno-objc-arc)

c# - MySQL从C#中的存储过程接收inout参数

c# - Windows 性能计数器从 PerfMon 中消失

java.lang.IllegalStateException : Fragment has not been attached yet Android Studio

android - 我可以在 Android 平板电脑上为所有者以外的用户启用开发者模式吗?

ios - 将 firebase 与 WatchKit 结合使用

c# - 关于 SQLite 整数和 int 数据类型的问题