Android 或 IOS 上有类似于 XNA 的吗?
我想开始为 Android/IOS 创建游戏。我已经使用 XNA 创建了 2D 游戏,我想将它们发布到其他平台,甚至是 PC,但我的首要任务是移动平台。正如我所说,我熟悉 XNA,因此我需要一个类似的 2D 引擎。如果我能写一次并在多个平台上发布,那就太好了。请不要推荐 Unity 或 Unreal。当涉及到 2D 时,它们并不那么容易。
我所说的相似是指,例如,在屏幕上绘制精灵是多么容易。 注意:我正在 Windows 上工作,所以请不要提供 Mac 的建议。
问候,
I want to start creating games for Android/IOS. I have already created 2D games using XNA and I want to publish them on other platforms even PCs but my highest priority is Mobile platforms. As I said I am familiar with XNA so I need a similar Engine for 2D. It would be great if I could write once and publish on many platforms. Please dont suggest Unity or Unreal. They are not that easy when it comes to 2D.
By similar I mean, for example, how easy to draw a sprite on the screen.
Note: I am working on Windows so no Mac suggestions please.
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
您可能还想考虑 MonoGame ( https://github.com/mono/MonoGame/ )因为这也是 XNA 的开源 OpenGL 实现,目前支持 iOS、Android、MacOS X、Windows 和最近的 Linux。现在移动平台上都是ES 2.0。我们最大的变化是我们现在支持 Windows 8,并且借助 SharpDX 拥有 DirectX 11 后端。我们现在还提供了最初的 PlayStation 移动支持。
实际上 ExEn 是 MonoGame 的一个分支(最初称为 XNATouch )。
有关 AppStore 或 Android Market 上的游戏列表,甚至是目前使用 MonoGame 的 NaLC,请查看此处 -
http://monogame.codeplex.com/
我希望这会有所帮助。
D .
You may also want to consider MonoGame ( https://github.com/mono/MonoGame/ ) as that is also an Open Source, OpenGL implementation of XNA that currently has support for iOS, Android, MacOS X, Windows and recently Linux. It is now all ES 2.0 on the mobile platforms. Our biggest change is that we now support Windows 8, and have a DirectX 11 backend thanks to SharpDX. We now also have initial PlayStation mobile support.
Actually ExEn, is a fork of MonoGame( originally called XNATouch ).
For a list of games on the AppStore or Android Market place and even NaLC, currently using MonoGame look here -
http://monogame.codeplex.com/
I hope this helps.
D.
您可能想继续关注名为 ExEn,它已经成功地将一些 XNA 示例和较小的游戏移植到 iPhone 和 Android。移植和重构到这些平台所需的工作相对较少。
You might want to keep up on the project called ExEn, which has already successfully ported some XNA samples and smaller games to iPhone and Android. It requires relatively little work to port and refactor to these platforms.
我建议您查看 AndEngine,它是一个基于开源 2d open-gl 的游戏引擎,拥有强大的社区。如果您想要制作跨平台游戏,请查看 LibGDX 它也是免费的,开源且基于 openGl,但它也允许 3D 游戏。它也是跨平台的,因此您为 Android 编写的游戏可以编译为 Windows、MacOS(见下文)、Linux。它还有一个非常强大的社区。
对于 iOS 和 OSX 游戏,除非你购买 Mac,否则你真的无法制作它们。 Apple 不会将他们的 SDK 分发到除了他们自己的平台之外的任何其他平台上。这就是说你也许可以在 VMWare 下得到一些工作
I suggest you check out AndEngine, its an open-source 2d open-gl based game engine that has a strong community. If you want something that you can make cross platform games with check out LibGDX It too is free, open source and based on openGl but it also allows for 3d games. It is also cross platform so a game you write for android can be compiled for, Windows, MacOS (see below), Linux. It also has a really strong community.
Regarding iOS and OSX games you really can't make them unless you buy a Mac. Apple doesn't distribute their SDK for use on any other platform but their own. That said you could maybe get something working under VMWare
查看MOAI SDK。它是完全免费和开源的。它现在处于测试阶段,但仍然相当不错。 iOS 版 Crimson Pirates 就是用它开发的。
目前它支持 iOS、Android、Mac、Windows 和 Linux。真的很好。我以为我喜欢 Cocos2D-x,它是 Cocos2d-iphone 的 C++ 变体,支持 Windows、iOS(不是 Mac)和 Android,但并不真正支持桌面,这让我更喜欢 MOAI。
您可以将 C++ 与 MOAI 结合使用,也可以使用 Lua(他们强烈鼓励使用 Lua)。使用 C++ 构建确实很棒,因为您可以访问大量的库,并且可以轻松地将它们绑定到 Lua。
Check out MOAI SDK. It's completely free and open-source. It is in beta right now but it is still pretty good. Crimson Pirates for iOS was developed with it.
Right now it supports iOS, Android, Mac, Windows, and Linux. Really good. I thought I liked Cocos2D-x, which is a C++ variant of Cocos2d-iphone supporting windows, iOS (not Mac), and Android but not truely supporting desktop kinda made me like MOAI more.
You can use C++ with MOAI or you can use Lua (they highly encourage using Lua). Being built in C++ is really great because you get access to a vast amount of libraries and you can easily bind them to Lua.
您应该尝试使用 cocos2d 进行游戏开发。
Cocos2d 是我遇到过的最好的 ios/Android 2d 引擎之一。
http://www.cocos2d-iphone.org/
它是基于 openGL 的免费引擎。
问候,
山姆
You should try games development with cocos2d.
Cocos2d is one of the best 2d engines for ios/Android I have come across.
http://www.cocos2d-iphone.org/
It is openGL based free engine.
Regards,
Sam
这些可能对您有用。然而,前两个不是免费的,但它们有 iOS 和 Android 版本。
iOS:
http://ios.xamarin.com/
Android:
http://android.xamarin.com/
我从未使用过其中任何一个,但这是我的东西我已经研究了一下。
显然,它允许您在 iOS 和 Android 上运行 C# 和 .NET 代码,考虑到与 Open GL ES 2.0 相比,XNA 中的绘图和类似操作要容易得多,这非常酷。更不用说您将使用 C# 而不是 Objective C。
还有一个免费的开源版本,由制作我上面列出的两个版本的同一个人赞助。它允许您在 Windows、Linux 和 Mac OS X 上运行 C# 和 .NET 代码。
http://www .mono-project.com/Main_Page
These might be useful to you. However, the first two aren't free, but they have editions for both iOS and Android.
iOS:
http://ios.xamarin.com/
Android:
http://android.xamarin.com/
I've never used either of them, but it's something I've been looking into a bit.
Apparently it lets you run C# and .NET code on both iOS and Android which is pretty cool considering how much easier drawing and things like that are in XNA compared to Open GL ES 2.0. Not to mention the fact that you'd be using C# instead of objective C.
There's also a free open source version sponsored by the same people who make the two I listed above. This one lets you run C# and .NET code on Windows, Linux, and Mac OS X.
http://www.mono-project.com/Main_Page
过去几周我一直在深入研究这个话题。
我认为最适合您的解决方案是 Marmalade,以前称为 Airplay SDK。它实际上比 Mac 更面向 Windows(在 Visual Studio 中工作),尽管您仍然需要 Mac 来完成将签名应用程序发布到商店的最后一步。这听起来像是一个功能非常强大的纯 C++ 产品,支持 iOS 和 Android 以及许多其他平台,带有启动屏幕的个人许可证每年 150 美元,单座专业版许可证每年 500 美元,适用于所有平台。他们有 45 天的试用许可证,我目前正在使用。
我对 MonoGame 很感兴趣,可以接受每个平台 400 美元的价格标签(对于所需的 MonoTouch),但它实在是太有问题了。最后一根稻草是一个错误的组合,导致它使 iOS5 上的所有示例崩溃并且< a href="http://monogame.codeplex.com/workitem/6692" rel="nofollow">iOS 上的键盘输入损坏。
公平地说,我很确定这一切都在 MonoGame 方面,并且对 MonoTouch 的出色工作印象深刻,并期待着使用 LINQ 等在 C# 中进行编程。
I have been researching this topic intensively over the last few weeks.
I think the best solution for you is Marmalade, formerly known as Airplay SDK. It is actually more Windows-oriented than Mac (work in Visual Studio), although you still need a Mac for the final step of getting a signed app onto the store. It sounds like a very capable pure C++ product with iOS and Android as well as a bunch of other platforms, Personal license with splash screen $150 pa, single seat Professional $500 pa for all platforms. They have a 45 day trial license which I'm currently using.
I was tempted by MonoGame, could live with the $400 price tag for each platform (for the needed MonoTouch) but it is just way too buggy. The final straw was a combination of a bug causing it to crash all the samples on iOS5 and that keyboard input is broken on iOS.
Too be fair, I'm pretty sure that is all on the MonoGame side and was very impressed with how well MonoTouch worked and was looking forward to programming in c# with LINQ et al.
由于从其他答案中并不明显,因此应该注意那些不知道 ExEn 项目和 MonoGame 项目都构建在 Xamarin(以前来自 Novell)的 Monotouch 平台上的人 - 这是 iOS 游戏的先决条件。
在另一个答案中提到 Xamarin 项目作为 Xna 的替代品,但实际上并非如此。 Monotouch 和 Mono for Android 是在 iPhone/iPad 和 Android 上运行 C# 和 .NET 的一种方式。
至少在 iPhone 端的游戏开发通常是使用 OpenGL 完成的,并且 OpenGL 也包含在 Monotouch 中。据我所知,Exen 和 MonoGame 中的 Xna 实现也使用 OpenGL 作为基础。
还应该指出的是,Monotouch 和 Mono for Android 都是商业产品。
顺便说一句:Exen 还可以编译到其他平台,例如 silverlight。
Since it is not obvious from the other answers, it should be noted to those who are unaware that the ExEn project and the MonoGame projects both build on the Monotouch platform from Xamarin (formerly from Novell) - which is a prerequisite for both for iOS games.
The Xamarin projects was mentioned in another answer as an alternative to Xna, but is really not. Monotouch and Mono for Android are a way to run C# and .NET on iPhone/iPad and Android.
Game development at least on the iPhone side, is typically done using OpenGL and OpenGL is also wrapped in Monotouch. The Xna implementations in Exen and MonoGame also uses OpenGL as the foundation as far as I know.
It should also be noted that Monotouch and Mono for Android are commercial products.
BTW: Exen also compiles to other platforms e.g. silverlight.