XNA之后的C#游戏开发

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10714091/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 14:56:32  来源:igfitidea点击:

C# game development after XNA

c#xnaunity3d

提问by Giuseppe Maggiore

I am a game developer who made games in .Net languages with XNA for the past four versions of it. Unfortunately now there's this news: http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php#.UQ3yiehQCh8

我是一名游戏开发人员,在过去的四个版本中使用 XNA 以 .Net 语言制作游戏。不幸的是现在有这个消息:http: //www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php#.UQ3yiehQCh8

I am surveying the ecosystem of game engines, looking for something that supports coding in Visual Studio (I use F# heavily, believe it or not!) and I am having trouble finding something that is high quality, still alive, and high performance to replace XNA. Unity for example misses the mark because it only allows for scripting in MonoDevelop, while I want a more developer friendly experience.

我正在调查游戏引擎的生态系统,寻找支持在 Visual Studio 中编码的东西(我大量使用 F#,信不信由你!)但我很难找到高质量、仍然有效和高性能的东西来替代XNA。例如,Unity 没有达到目标,因为它只允许在 MonoDevelop 中编写脚本,而我想要一个对开发人员更友好的体验。

So what is a good replacement for XNA?

那么什么是 XNA 的良好替代品呢?

采纳答案by xoofx

If you want to leverage on XNA API, you should bet on MonoGame. It is a compatible XNA API that is targeting to run on several platforms (including several non Windows platforms using OpenGL). The development is very active, MonoGame is recently getting a full 3D stack that is starting to work on Windows Metro app (thanks to SharpDX). You can have a look at the latest develop3dbranch.

如果您想利用 XNA API,您应该押注MonoGame。它是一个兼容的 XNA API,旨在在多个平台上运行(包括几个使用 OpenGL 的非 Windows 平台)。开发非常活跃,MonoGame 最近获得了一个完整的 3D 堆栈,该堆栈开始在 Windows Metro 应用程序上运行(感谢SharpDX)。你可以看看最新的develop3d分支。

回答by Robert Rouhani

Try looking at Axiom(.NET port of OGRE) and Delta Engine.

尝试查看Axiom(OGRE 的 .NET 端口)和Delta Engine

Edit:if you're looking for lower-level graphics libraries, try OpenTKor SlimDX.

编辑:如果您正在寻找较低级别的图形库,请尝试OpenTKSlimDX

回答by AlphaMale

Have you tried Tao Framework, Allegroand SlimDX

您是否尝试过Tao FrameworkAllegroSlimDX

回答by Botz3000

I don't know when you checked last time, but Unity does in fact support coding in Visual Studio. You just have to select it as editor in preferences.

我不知道你上次检查是什么时候,但Unity 实际上支持在 Visual Studio 中编码。您只需在首选项中选择它作为编辑器。

回答by Falanwe

SharpDXallows you to make full use of DirectX from managed code, and it is currently very active, even with support for WinRT.

SharpDX允许您从托管代码中充分利用 DirectX,它目前非常活跃,甚至支持 WinRT。

回答by Michael Malura

There is nothing awesome like XNA. I don't get it why MS is throwing XNA away. It is the only System that works with the XBox 360. You can try Engines or Wrappers like Tao, SlimDx or something else. But XNA was the best System for rapid game development.

没有什么比 XNA 更棒的了。我不明白为什么 MS 要把 XNA 扔掉。它是唯一可与 XBox 360 配合使用的系统。您可以尝试使用引擎或包装器,例如 Tao、SlimDx 或其他东西。但 XNA 是快速游戏开发的最佳系统。

I'am now switched to Java + LWJGL.

我现在切换到 Java + LWJGL。

回答by freewebtime

Also, if you wish to get something similar with XNA, you can use SharpDX and SharpDX toolkit that provides pretty XNA-similar interface. Look here

此外,如果您希望获得与 XNA 类似的东西,您可以使用提供漂亮的 XNA 类似界面的 SharpDX 和 SharpDX 工具包。看这里

DownloadSharpDX from theirs site (choose 'SharpDX-Full-2.4.0.exe', it has samples inside the archive), unpack it and run SharpDXToolkitSamples.sln

从他们的站点下载SharpDX(选择“SharpDX-Full-2.4.0.exe”,它在存档中有示例),解压并运行 SharpDXToolkitSamples.sln

回答by sec_goat

No one has mentioned DirectXTK? I believe this is the direct successor to XNA which is being develop on / with Windows 8. Some More info from Shawn Hargreaves here.

没有人提到DirectXTK吗?我相信这是在 Windows 8 上/与 Windows 8 一起开发的 XNA 的直接继承者。这里有来自 Shawn Hargreaves 的更多信息

Of course if you are interested in cross platform development checkout MonoGame as some have suggested.

当然,如果您对跨平台开发感兴趣,请按照某些人的建议查看 MonoGame。

回答by Ryan Mann

Imo if your going to be a game dev and you want complete control and want to port, and furthermore want to use C#.

如果您打算成为游戏开发者并且想要完全控制并想要移植,并且想要使用 C#,那么 Imo。

OpenTK is probably the way to go. It supports up to OpenGL 3.0 and is compatible with mono, meaning you can port to PC, OSX, Linux, Android, and IOS. Ironically, about the only thing you can't do with it is xbox 360/1 and windows phone. But imo, If your looking to make games on phones Android and IOS is more than 90% of the market so go that route...

OpenTK 可能是要走的路。它最高支持 OpenGL 3.0 并与单声道兼容,这意味着您可以移植到 PC、OSX、Linux、Android 和 IOS。具有讽刺意味的是,您唯一不能使用它的是 xbox 360/1 和 Windows Phone。但是 imo,如果您希望在 Android 和 IOS 手机上制作游戏超过 90% 的市场,那么请走这条路......

http://www.opentk.com/

http://www.opentk.com/

Downside:

缺点:

This project doesn't appear to have been updating since 2010, but it's very stable and feature packed up to open gl 3.0. But if you want to go farther with it you'll eventually need to update it yourself, but it's open source and under the GPL so you can.

这个项目自 2010 年以来似乎没有更新,但它非常稳定并且功能打包以打开 gl 3.0。但是如果你想更进一步,你最终需要自己更新它,但它是开源的,并且在 GPL 下,所以你可以。

OpenTK also has OpenAL included in it and handles graphics and sound.

OpenTK 还包含 OpenAL 并处理图形和声音。

回答by Apollo SOFTWARE

Unity 4.2 allows coding in Visual Studio for Windows 8 or RT. From what I understand 4.3+ will allow coding for Windows Phone 8 through Visual Studio. Though not the ideal substitute for XNA, still a viable one. As far as XBOX 360 or other platforms aside Windows 8 and Phone 8, I'm not sure if VS can be your IDE, but Microsoft is making a major push with Unity3D, check out there promotion for devkits for XBOX One. They are practically giving them away to Indie Developers:

Unity 4.2 允许在 Visual Studio for Windows 8 或 RT 中进行编码。据我了解,4.3+ 将允许通过 Visual Studio 为 Windows Phone 8 编码。虽然不是 XNA 的理想替代品,但仍然是一个可行的替代品。至于 XBOX 360 或除 Windows 8 和 Phone 8 之外的其他平台,我不确定 VS 是否可以成为您的 IDE,但微软正在大力推动 Unity3D,请查看 XBOX One 开发套件的促销活动。他们实际上是将它们赠送给独立开发者:

http://techcrunch.com/2013/11/05/unity-game-engine-goes-free-for-indie-xbox-one-developers/

http://techcrunch.com/2013/11/05/unity-game-engine-goes-free-for-indie-xbox-one-developers/

That's thousands of dollars of free software and hardware for indie developers. Another step closer to democratizing the game development process, and assisting indie studios.

对于独立开发者来说,这是数千美元的免费软件和硬件。更接近于游戏开发过程的民主化,并协助独立工作室。