I wanted to make a more reliable breakout style game or just ball/ricochet that would bounce off in proper angles and not fly off randomly. (all in the style of 70-early 80s era game) Also not escaping the play field.
For the not escaping play field I used rexrainbow plugin Boundary which works nicely.
For the better, more predictable moving of the ball/bullets I used custom movements instead for bullet. It is so much better!! (the "Reverse custom movement" for example to switch the angle)
The goal is indeed to have a good code even for high speed or low spec computers.
Here's a capx just be aware you have to have Boundary plugin.
Use shift to add ball, you can add more balls. The paddle's top will change the ball's angle.
Left/right arrow to move the paddle.
Spacebar to pause game, enter to unpause.
Try add 10+ balls in this game and study how the balls starts to go through the blocks.
(wait with the first ball until you got the screen filled with at least 100+ blocks)