在Visual Basic .NET中使用XNA Framework(译文)
By robot-v1.0
本文链接 https://www.kyfws.com/games/use-the-xna-framework-in-visual-basic-net-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 4 分钟阅读 - 1540 个词 阅读量 0在Visual Basic .NET中使用XNA Framework(译文)
原文地址:https://www.codeproject.com/Articles/23780/Use-the-XNA-Framework-in-Visual-Basic-NET
原文作者:Scott Bailey
译文由本站 robot-v1.0 翻译
前言
This is a VB.NET project template, using the XNA framework.
这是使用XNA框架的VB.NET项目模板.
介绍(Introduction)
当涉及到游戏开发时,XNA框架是一个非常有用的工具.它极大地简化了用于创建功能强大,功能丰富的游戏的代码.但是,如果您曾经尝试在VB.NET中使用XNA框架,则很快就会发现它不起作用.也许将来Microsoft将支持VB.NET,但目前XNA仅支持C#.由于对该网站的快速搜索没有发现VB.NET的任何XNA代码或模板,因此我决定编写此模板,以帮助希望在VB.NET中使用XNA框架的人.(When it comes to game development, the XNA framework is an invaluable tool to use. It greatly simplifies the code that is used to create powerful, feature rich games. But, if you have ever tried to use the XNA framework in VB.NET, you quickly found out that it doesn’t work. Maybe in the future Microsoft will support VB.NET, but for now XNA only supports C#. Since a quick search of this site didn’t reveal any XNA code or templates for VB.NET, I decided to write this template to help those who would like to use the XNA framework in VB.NET.)
使用代码(Using the Code)
要使用此模板,只需下载(To use this template, simply download the)**.压缩(.zip)**文件并将其放置在Visual Basic .NET项目模板文件夹中.该文件夹的路径应如下所示:(file and place it in your Visual Basic .NET project templates folder. The path to this folder should be something like this: “)C:\ Documents and Settings \ UserName \ My Documents \ Visual Studio 2005 \ Templates \ ProjectTemplates(C:\Documents and Settings\UserName\My Documents\Visual Studio 2005\Templates\ProjectTemplates)” 要么 “(” or “)C:\ Documents and Settings \ UserName \ My Documents \ Visual Studio 2005 \ Templates \ ProjectTemplates \ Visual Basic(C:\Documents and Settings\UserName\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic)".这两个文件夹都可以使用.(”. Either folder will work.) 注意(NOTE)注意:为了使用此模板,您必须安装XNA框架.有很多地方可以得到它.如果您没有它,快速的Google搜索" XNA framework"将带您找到许多可以找到它的站点.而且,这不是一个完整的游戏,也并非意味着如此.该模板仅为您创建起点.所有代码都经过充分注释,以显示每个过程的用途.(: In order to use this template, you must have the XNA framework installed. There are numerous places to get it. If you don’t have it, a quick Google search for “XNA framework” will bring up many sites where you can get it. Also, this is not a complete game, nor is it meant to be. This template only creates the starting point for you to build upon. All code is fully commented to show what each procedure is for.)
局限性(Limitations)
在VB.NET中使用XNA的唯一缺点是您将无法开发XBox 360游戏.您的游戏只能在Windows上运行,因为到目前为止,XBox 360控制台不支持(The only downfall with using XNA in VB.NET is that you won’t be able to develop XBox 360 games. Your games will only work on Windows, because as of yet, the XBox 360 console doesn’t support the)**Microsoft.VisualBasic.dll(Microsoft.VisualBasic.dll)**需要使用VB.NET语言.希望将来会有所改变.(required to use the VB.NET language. Hopefully in the future this will change.)
讲解(Tutorials)
对于那些想学习在VB.NET中使用XNA框架的人,如果时间允许,我将尝试在业余时间编写一些有关此操作的教程.我将尝试使它们保持简单,并针对正在发生的事情提供大量评论和解释.尽管这些教程将针对XNA的初学者,但是您应该具有一定的编程经验,以充分利用它们,因为我不会使用Visual Basic语言语法.无论如何,请继续检查.(For those of you who would like to learn to use the XNA framework in VB.NET, if time lets me, I am going to try to write several tutorials on doing this in my spare time. I will try to keep them simple, with plenty of comments and explanations of what is going on. Although these tutorials will be aimed at the beginner in XNA, you should have some programming experience to make full use of them, because I am not going into the Visual Basic language syntax. Anyways, keep checking back.)
历史(History)
- 20(20)日(th)2008年2月:初始职位(February, 2008: Initial post)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VB8.0 VB9.0 VB6 VB VB7.x Windows WinXP Dev 新闻 翻译