Jump to content
  • Advertisement
Sign in to follow this  
KG_Brad

Collision Detection and "Gravity" - How do I do it?

This topic is 4001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Currently, I'm working on a simple engine for platformers similar to Commander Keen and the old Duke Nukem games. To scroll the screen, my engine kind of "fakes" it by scrolling the background behind the player sprite. My levels are all tile based. How would I implement collision detection? Also, is there a way I can create a gravity effect for jumping? Thanks, KG_Brad

Share this post


Link to post
Share on other sites
Advertisement
The tutorial is wrote in C++ but I think I could come up with a way to do what it's doing in C. The engine is still at an early stage, but it should be ready within a month. Thanks for the quick response!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!