I already have a paddle and ball in my pong game. How do I know if the ball coords "enter" the paddle's? Give example please!
Printable View
I already have a paddle and ball in my pong game. How do I know if the ball coords "enter" the paddle's? Give example please!
I'm not much help, but you porbably need to start asking about OpenGL or DirectX coding.
What type of object is the ball and paddle?
Probably you have stored coordinates and sizes of ball and paddle rectangles. Check intersection of these rectangles. It doesn't matter whether you use IntersectRect () function or not. It is still pure and simple math.