WPF,Silverlight的或XNA:选择用于游戏开发的平台游戏开发、平台、WPF、Silverlight

2023-09-03 13:09:19 作者:落幕式、悲伤

哪种.NET技术最适合哪种类型的游戏?什么是标准WPF,Silverlight的或XNA?

Which .Net technology is best suitable for which kind of game? What the criteria for choosing between WPF, Silverlight or XNA?

推荐答案

说真的,你在比较苹果和表底特百惠来...

Really, you're comparing apples to end tables to Tupperware...

WPF是不是严格意义上的游戏相关的技术。由于它如何处理数据绑定和从逻辑层的UI层的分离,它可能很好的事情,你正在寻找一个丰富的客户端,但你希望能够进行更改到presentation很容易,也许是因为你想游戏要改变皮肤。除此之外,你没有真正得到多少的游戏了WPF作为一种技术。这是一种底线的,如果你承担一些在Windows平台上。

WPF isn't strictly a game-related technology. Because of how it handles data binding and the separation of the UI layer from the logic layer, it might work well for anything where you're looking for a rich client, but you want to be able to make changes to the presentation easily, perhaps because you want the game to be skinnable. Apart from that, you're not really getting much for gaming out of WPF as a technology. It's kind of the baseline if you're assuming something on the Windows platform.

通过Silverlight中,你会得到基于浏览器的交付在多个平台上。这是一个大抽奖。更多的权力比你通常在浏览器中,但肯定不是你有什么作为普通客户端应用程序。更多的艺术自由比你通常在浏览器中,但同样并不像你必须在客户端应用程序。如果你已经尝试过这样做基于网络的游戏,这是迈出了一大步。如果你已经习惯了基于桌面的东西,访问多个客户端可能会感兴趣,但除此之外,它是一个很大的下台在性能和原材料的能力。

With Silverlight, you get browser based delivery on multiple platforms. That's the big draw. More power than you normally have in the browser, but certainly not what you have as a regular client-side app. More artistic freedom than you normally have in the browser, but again not as much as you'd have in a client-side app. If you've tried doing web-based games before, this is a big step up. If you're used to desktop-based stuff, accessing multiple clients might interest you, but otherwise it's a big step down in performance and in raw capabilities.

XNA是一个游戏技术。这不仅仅是因为您可以访问到Xbox(和Zune!)作为一个平台;它的整个基础架构是建立在制作游戏。它给你建了象着色器,​​定时器,碰撞检测,定位音频,以及一大堆的东西,你通常必须编写你自己,你的游戏是否是2D或3D的支持。该基地项目甚至创建了一个基本的游戏循环为您服务。这是非常特殊的,因为它支持的平台,并支持他们的的游戏。真的,如果建立一个游戏,你想要做什么的核心,你还在学习的过程中,这是一个伟大的地方开始。假设你不需要特殊的优点,你提到的其他技术有,我会说,新华社是一个什么样的游戏,你正在计划建设的可能是你最好的选择,而不管。

XNA is a game technology. It's not just that you get access to the Xbox (and Zune!) as a platform; it's that the entire infrastructure is built around making games. It gives you built in support for things like shaders, timers, collision detection, positional audio, and a whole host of stuff that you'd normally have to write yourself, whether your game is 2d or 3d. The base project even creates a basic game loop for you. It's very specific in the platforms that it supports and it supports them for gaming. Really, if building a game is the core of what you want to do and you're still learning the process, it's a great place to start. Assuming you don't need the specific advantages that the other technologies you mentioned have, I would say that XNA is probably your best choice, regardless of what kind of game you are planning on building.