如何用C#编写简单的游戏? [英] How to write an easy game with C#?

查看:87
本文介绍了如何用C#编写简单的游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用C#编写简单的游戏?
谢谢.

How to write a easy game with C#?
Thank you.

推荐答案

您可以自己从Microsoft下载XNA框架并使用它,而不是自己重新发明轮子.基本上,这是一个框架,可让您定位到Windows,XBox和即将推出的Windows Phone7.它使您可以使用选择的.NET语言编写游戏.

您可以在此处 [
Rather than reinventing the wheel yourself, you could download the XNA framework from Microsoft and use that. Basically, this is a framework that allows you to target Windows, XBox and soon, the Windows Phone 7. It allows you to use the .NET language of your choice to write games.

You can find more information here[^], and there are a number of excellent books/tutorials available for it.


编码?

开始选择游戏.您已经有想法了吗?
然后,与其他任何软件项目一样,必须确定要求.
最终,您可能最终会设计应用程序并编写实际的代码.
:)
Coding?

Start choosing the game. Have you already an idea about?
Then, as any other software project, the requirements must be identified.
Eventually you may end up designing your application and writing the actual code.
:)


完全可以用C#进行简单的游戏,如果您是新手,那么可以从像俄罗斯方块这样的简单东西开始,这里有很多示例源在那里

It''s totally possible to do simple games in C#, if you''re new to this then start with something simple like Tetris, there''s lots of example source out there

http://www.google.co.uk/search?q=c%23+tetris&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a[^]

More complex games will use the DirectX libraries, google ''DirectX C# Games''


这篇关于如何用C#编写简单的游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆