Collision detection problem
So I am on a journey of trying to recreate classical games, like pong, snake, galaga, ex. And I've started with pong.
I've ran into a problem, the collsion detection for the ball and paddle is rectangle(AABB) collisions.
The problem is that the ball collides with only the middle and the top, while completly ignoring the bottom.
link to my code - https://microstudio.dev/i/MrBoi/newpong/
Thanks in advance :D