简体   繁体   English

如何使对象移动 - 如何使用 VB.NET 制作游戏

[英]How to make a object moving - How to make game with VB.NET

How to make a object moving on the screen- How to make game with VB.NET如何让物体在屏幕上移动 - 如何使用 VB.NET 制作游戏
- In 2d game, ex i see a mario charator, which is object ( Label, image vvv) - 在 2d 游戏中,例如我看到一个 mario 字符,它是对象(标签,图像 vvv)
- Is there a physical engine for vb.net - 是否有适用于 vb.net 的物理引擎
Sorry, bad english对不起,英语不好

look at XNA for .NET game developing看看 XNA 进行 .NET 游戏开发

XNA Developer Center XNA 开发者中心

If you don't want to use this or other framework, you've to write a lot of code, need mathematic background etc.如果您不想使用这个或其他框架,则必须编写大量代码,需要数学背景等。

You should look into XNA , although most examples are done in C#.您应该查看XNA ,尽管大多数示例都是用 C# 完成的。

Start off by looking at a few tutorials and then try making a simple game for yourself (do not start off with Mario etc as this is too complex for beginners. Think more along the lines of Pong).从查看一些教程开始,然后尝试为自己制作一个简单的游戏(不要从 Mario 等开始,因为这对初学者来说太复杂了。更多地按照 Pong 的思路思考)。

Get yourself a good book, for example http://www.amazon.com/Learning-XNA-3-0-Game-Development/dp/0596521952给自己买一本好书,例如http://www.amazon.com/Learning-XNA-3-0-Game-Development/dp/0596521952

Also check out SlimDX , an open source alternative for building DirectX apps in .Net.另请查看SlimDX ,这是一种用于在 .Net 中构建 DirectX 应用程序的开源替代方案。 DirectX is a set of Microsft APIs for dealing with Game Development DirectX 是一组用于处理游戏开发的 Microsft API

The basic premise is that you have a timer running and on each tick of the timer, you determine how much your objects should move then refresh the screen.基本前提是您有一个正在运行的计时器,并且在计时器的每个滴答声中,您确定您的对象应该移动多少然后刷新屏幕。 This is going to be a relatively fast timer (faster than .5 seconds, anyway) and will determine how smooth your animations are.这将是一个相对较快的计时器(无论如何都快于 0.5 秒),并将决定动画的流畅程度。

There are probably engines in VB.Net somewhere, but you really don't need to worry about what they're written in. They're likely to be distributed as a library and you can mix and match the languages as much as you want, as long as the projects are separate. VB.Net 中的某个地方可能有引擎,但您真的不必担心它们是用什么编写的。它们很可能作为库分发,您可以根据需要混合和匹配语言,只要项目是分开的。

As others have mentioned, though, you should look at Microsoft's XNA framework.不过,正如其他人所提到的,您应该查看 Microsoft 的 XNA 框架。 Most of the examples are written in C#, but this guy has tutorials about how to do VB.Net with XNA.大多数示例都是用 C# 编写的,但是 这个家伙有关于如何使用 XNA 执行 VB.Net 的教程。 His site is currently over its bandwidth limit, so here's a google cache version (hit ctrl+a to see the text as his font is a light blue and the cache is making the background white)他的网站目前超出了带宽限制,所以这是一个谷歌缓存版本(点击 ctrl+a 以查看文本,因为他的字体是浅蓝色,缓存使背景变成白色)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM