Advanced collision detection in breakout
Hi,
I'd like to implement a feature in a breakout game. What I'm trying to achieve is to make blocks (or tiles, things that get destoyed, when hit) to be in different shape than rectangles. Also, I would like to introduce clipping to other objects as well, like balls, bonuses and such. Like when two balls get hit, they should bounce away from each other.
My current idea of this whole thing, is that I should have sort of invisible and editable black and white map in the memory. Every object on the screen would check whether there is an obstacle (black color) on his way. However, I'm quite sure this solution is ridiculous.
What I'm looking for is an hypothetical answer, no snippets and such, unless you think it would be easier for you to explain me that concept. Any links and references are greatly appreciated. Thank you in advance!
Message was edited by:
yahoo

