In my pong game,I have tiles/blocks in my game. With these blocks, I have 4 rectangles for collision, theirs one for the left side,right side, top side, bottom side. One of the problems, is that when the left and top side intersect with each other, the balls y axis isn’t changed when they intersect.
Example : if dy(distance y) equals 3, and it intersects the left and top side rectangles, dy still equals 3.
This also happens with other rectangle(when left intersects bottom rectangle,when right intersects bottom top rectangle, etc.).
Source can be found here(updated link)
http://www.mediafire.com/?e66laoa29pys26c