Jump to content
Posted 04 November 2012 - 11:36 PM
Posted 05 November 2012 - 12:11 AM
Ive pretty much completed a tetris clone game and I did the collision just fine using a matrix and just checking if the areas are filled or not.
Then the last game I did still had 1 type of object that I stored in a vector and of course walls. So for collision detection I just cycled through the vector checking for collisions between the objects.
For more complex games I'm confused though.
For example a game with multiple objects and many types of objects. Not just walls and 1 object.
Maybe a character, bullets he shoots, enemies, etc. All these types of objects have to check collision between each other and handle the actions differently.
So my question is, can someone explain to me or suggest some articles on collision like this? Do I just always check every single object for a collision whether is near, far, relevant or not? Any help would be greatly appreciated! My goal is to get to the point where I can have the knowledge to be able to try making a sidescrolling shooter game, similar to MegaMan or Metroid, etc. Thank you!
Edited by ultramailman, 05 November 2012 - 12:12 AM.
Posted 05 November 2012 - 03:15 AM
Posted 05 November 2012 - 04:37 PM