Sign in to follow this  
Arbel

Question about Collision Algorithm

Recommended Posts

I'll admit, I'm a complete newbie when it comes to collision detection. The only thing I've done is make a crappy tile-based game. Beyond that, I've had little experience with collision. I'm helping out my artist friends in programming a platform adventure game. Right now it's set to be pixel-based collision detection, as in there is a copy of the map image in all black, and it checks each pixel for a black value. This works fairly well, but it feels pretty inefficient. I thought about doing tile collision, but I'm not sure how this would work with ramps, or look smooth. In simple, what are some approaches for 2D collision? What do some of the games (like Aquaria) do?

Share this post


Link to post
Share on other sites
Thanks for the reply. I'll definitely take a look into it. Is it used in some games, or just a really efficient algorithm? I'm also using C# and XNA if that makes any difference. Not sure if pointers are usable in C# (I'm assuming they are tho.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this