Breakout Game

Bounce the ball off your paddle and break every brick on the board!

Score: 0Lives left: 3

Move the mouse, touch and drag on the board, or use the arrow keys (←/β†’) to control the paddle. Press P to pause.

Understanding the ball first

This Breakout has a single ball, and its direction is always the same combination: 3 px across and 3 px vertically per frame. When the ball touches a wall, a brick or the paddle, only one component of its velocity flips sign, and its speed never changes. The path is therefore always a 45-degree diagonal. Hitting the middle of the paddle or its very edge gives the same rebound angle, and the ball never speeds up. In this version, the skill is not "aiming" with the paddle. It is reading where the ball will come down and standing there in advance. The board is a 480 Γ— 400 canvas, and the game updates exactly 60 times per second whatever your monitor's refresh rate, so the speed is the same on every screen.

Physics numbers taken from the code

ItemValue
Ball travel per frame3 px across and 3 px down (about 4.24 px diagonally)
Ball travel per second180 px per axis, about 255 px diagonally
Keyboard paddle speed5 px per frame = 300 px per second
Paddle, one edge to the other (keyboard)80 frames = 1.33 s
Ball crossing from wall to wall156 frames = 2.60 s
Paddle height up to the ceilingabout 125 frames = 2.08 s
Ball crossing the paddle width (80 px)about 26.7 frames

The keyboard paddle (300 px per second) is faster than the ball's horizontal speed (180 px per second), so keys alone can always keep up with where the ball is heading. With mouse or touch, the paddle's center jumps to the pointer, so there is no speed limit. The paddle stops at both edges of the board.

Brick layout and arrival times

There are 8 columns and 5 rows, 40 bricks in all, worth 1 point each, so a perfect score is 40. A brick disappears on the first hit; there are no multi-hit bricks and no power-ups. Each brick is 52 Γ— 18 px with a 4 px gap. The whole grid is 444 px wide, running from x = 18 to x = 462, leaving equal margins on both sides. The table shows how long the ball takes, after leaving the paddle, to reach the bottom of each row (measured at the ball's center, assuming a straight run with no wall bounce).

Row (from top)ColorVertical span (px)Frames to reachTime (s)
Row 1Red40 - 581081.79
Row 2Orange62 - 801001.67
Row 3Yellow84 - 102931.54
Row 4Green106 - 124861.42
Row 5Blue128 - 146781.30

Collisions use the ball's center point, not its 6 px radius. A brick counts as hit only when the center is inside its rectangle, so the ball can seem to clip a corner before bouncing away. The paddle works the same way: the ball's center must be within the 80 px width to be caught. If the ball only overlaps the paddle's edge with its center outside, it is a miss.

Hit rules in short

Worked examples

  1. Reaction time. A ball that hits the bottom row (row 5) returns to the paddle line after about the same time it took to rise,1.30 s. The fastest round trip is therefore about 2.6 s, during which the ball covers about 468 px sideways.
  2. Can the keyboard keep up? In that same round trip, the keyboard paddle can move up to 780 px, which is more than the ball's sideways travel (and wall bounces only shorten the distance), so keys alone are enough.
  3. Score structure. A perfect score is 5 rows Γ— 8 columns = 40 points, and every row is worth the same. Top rows are not worth more, so clearing the lower rows first carries less risk.

Practical strategy

Common mistakes and limits

Where Breakout comes from

The brick-breaking genre became widely known through Atari's 1976 arcade game "Breakout". Its simple set of paddle, ball and bricks inspired countless variations and clones afterward. The game on this page is a simplified take on that original.

Frequently Asked Questions

Can I play this on mobile?

Yes. Touch the board and drag left or right and the paddle follows your finger. Page scrolling is disabled on the board itself, so scroll from outside it.

Does the ball speed up over time?

No. The ball keeps the same speed of 3 px per axis per frame from start to finish, however many bricks you break.

Does the rebound angle depend on where the ball hits the paddle?

No. Only the vertical direction flips and the horizontal speed stays the same, so the angle is identical wherever the ball lands. What decides the direction is the way the ball was already traveling.

How do I pause?

Press the Pause button or the P key, and press it again to resume. The game time does not run while you are on another tab.

Are my score or records saved?

No. The score shows on screen only and resets when you reload, and the game stores nothing in your browser.

Try other classic games too

If steering a snake to eat food sounds fun, try our Snake game. To train your recall, there is theMemory Match game, and to see how quickly you react, theReaction Time Test.