I'm making a Breakout games. Inspired by DarkNoobs
. I had the collision working previously, but then deleted the program thinking I would take the project no further. Then I decided to get back into it again and tried the collision again. It works sometimes, but then other times, it will go straight through the brick. Any help is appreciated.
Use the arrows keys to change the speed and direction of the ball.
Download the file and here is the code with a screenshot just incase anyone can't download.
EDIT:
Figured it out nevermind.