XNA C#的2D平台游戏的游戏 [英] XNA C# 2D Platformer Game

查看:211
本文介绍了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.

这篇关于XNA C#的2D平台游戏的游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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