XNA C#的2D平台游戏的游戏

XNA C#的2D平台游戏的游戏

问题描述:

哎,
我试图做出(找出如何。)在XNA一个2D平台游戏。

Hey, I'm trying to make (figure out how to..) a 2d platformer in XNA.

我知道如何创建一个瓷砖电网和如何进行碰撞检测。
我履行对玩家的9边界瓷砖碰撞检测,但我想知道是否有进行碰撞检测的较好方法。

I know how to create a tile grid and how to perform collision detection. I perform collision detection on the 9 bounding tiles of the player, but I'd like to know if there's a better way to perform collision detection.

我读过编织不使用瓷砖拼凑,但图像或什么的,你怎么对这些进行碰撞检测?并且是比使用地砖好?

I've read Braid doesn't use tiles but pieced images or something, how do you perform collision detection on those? and is that better than using tiles?

假设你不介意使用第三方工具来完成大部分的为你的工作,你可能会使用类似的Box2D的C#会更好。

Assuming you don't mind using a third party tool to do the majority of the work for you, you may be better off using something like Box2D for C#.

http://www.box2d.org/
的http:/ /code.google.com/p/box2dx/

这库会给你碰撞检测和物理性能。

This library will give you collision detection and physics capabilities.