Flip Break: One-Button Breakout in MATLAB
In Flip Break, the paddle moves on its own and turns around at the edges. You decide when to reverse it and when to boost it to triple speed. The goal is not just to catch the ball, but to meet it with the part of the paddle that sends it toward a surviving brick.

Play with two control schemes
On the title screen, NORMAL and SWAPPED alternate about every 1.5 seconds. Click or press Space to select the displayed scheme and start.
- NORMAL: The first press reverses the paddle. A second press within 0.24 s boosts it to 3× speed.
- SWAPPED: The first press boosts the paddle to 3× speed. A second press within 0.24 s cancels the boost and reverses the paddle.
The first press acts immediately. The second counts only if received in a later update, and it does not undo the movement from the first. Try both schemes on the same board: which action would you rather have on the first press?

Clear all 55 bricks to see Congratulations!. Press once to see Speed Up, then again to start the next round with the same controls. After n clears, both the paddle and ball use 1 + 0.05*n times their starting speeds: 100%, 105%, 110%, and so on. The double-tap window stays the same.
Aim with the point of contact
At a wall, the game reverses the velocity component perpendicular to it. At the paddle, it keeps the ball's speed but picks a direction from six preset angles. Try hitting just right of center (20° from vertical), then near the right edge (60°). Before the next collision, sideways travel divided by vertical rise is tan(θ). For the same rise, the 60° shot travels about 4.8 times as far sideways. The angles are game rules, not a physical model of a paddle.
Calculate what happens between frames
Rather than checking only the ball's end position, the game calculates when the moving circle first touches a brick's face or corner. It advances to the earliest event and then processes the rest of the update. The bounce follows a separate game rule: a brick corner reverses both velocity components. For the paddle, the game checks horizontal overlap when the bottom of the ball reaches the paddle's top, using the ball's horizontal velocity relative to the paddle. A boost can put the paddle under the ball just in time.
Implementation and testing
The collision and paddle-angle routines came from an earlier Breakout prototype. The Mini Hack version separates initialization, updates, and rendering, and reuses its graphics objects. Its single game.m passed the validator at 9,980 characters. The round test set up the last brick twice and let the game register each final hit. It checked both speeds at 105% and 110% and confirmed that a paddle bounce preserved ball speed. This was not a full manual playthrough.