As some of you know(?) I am working on a breakout clone (with my own twists)..
The ball has bullet behavior, and the walls on top, left side and right side is "solid".
Once in a blue moon the ball get sneaky and bounce through the wall and escape. Because of that it happens so seldom it is hard to "check bug" it.
So I would like to have your input on approach to "cure" this.
I wonder if it would be a good idea to identify the ball x and y position, and verify with the play area and if it is outside of the play area, adjust the position of the ball to be just inside the play area?
Would you do this or something else?
If you want to see the game itself it is here.