XNA新手,一般问题

发布于 2024-07-16 02:15:28 字数 342 浏览 10 评论 0原文

正如标题所指出的,我在 XNA 相对较新。 然而,我的老板给了我一个琐碎的任务,看看我是否能完成它。 我毫不怀疑我最终会的,但一些正确方向的指示会有所帮助。

这不是一项家庭作业,我只是在寻找一些提示和指示,因此我不必太深入地研究所有文档;)

  • 我将如何向我的项目添加相机视点?
  • 处理用户输入(在本例中为键盘)的最佳方法是什么
  • ?用于检测两个对象之间的碰撞检测的最佳实践/常用方法?

另外,我必须指出,我有 C++ 背景,而 C# 对我来说相当新(尽管我以前做过一些小项目,比如这个)。 对于这两种语言之间的转换过程的任何帮助也将受到赞赏。

As the title points out, I'm relatively new at XNA. However, I've been given a trivial assignment by my boss to see if I can get it done. I have no doubt that I eventually will, but some pointers in the right direction would help.

This isn't a homework assignment, and I'm just looking for a couple of tips and pointers so I don't have to dig too deep into all the documentation just yet ;)

  • How would I go about adding camera viewpoints to my project?
  • What would be the best way to handle user input (keyboard in this case)
  • Best practices/commonly used methods for detecting collision detection between two objects?

Also I must note that I'm coming from a C++ background, and C# is fairly new to me (although I've done some small projects, such as this one, before). Any help on the transition process between those two languages is appreciated as well.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伊面 2024-07-23 02:15:28

好吧,在不了解您的项目(例如 2D 或 3D)的情况下,我只能向您指出一些网站的方向,您可以在其中轻松找到有关这些主题的具体信息。 查看上一个关于好的 XNA 博客 的问题,因为列出的大多数网站会有一些好地方供您搜索有关您想要做的任何事情的信息(有很多示例)。

至于从 C++ 迁移到 C#,这里有一些资源可能会帮助您:

Well, without knowing anything about your project (2D or 3D, for example), I can only point you in the direction of some websites where you can easily find specific information on these topics. Check out this previous question about good XNA blogs, because most of the websites listed there will be good places for you to search for information on whatever you are trying to do (with lots of examples).

As far as moving from C++ to C#, here are a couple resources that might help you with that:

甜味超标? 2024-07-23 02:15:28

查看这个简单的 3D 教程,可以在右侧的菜单栏中访问不同的章节。

http://www.riemers.net/eng/Tutorials/XNA/ Csharp/series1.php

它有简单的地形、键盘和摄像机角度信息,全部都是完整的代码,大约需要 2 个小时才能完成整个过程。 享受

check out this simple 3d tutorial, access to the different chapters is in the menu bar on the right.

http://www.riemers.net/eng/Tutorials/XNA/Csharp/series1.php

it has simple terrain, keyboard, and camera angle information, all in full code and it takes about 2 hours to get through the whole thing. enjoy

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文