DevTools Logo

Brick Breaker

Brick Breaker

Classic arcade brick breaker game

Runs in your browser

Brick Breaker

Level 1/5 · Warm Up
Score
0
Best
0
Lives
♥♥♥
Level
1/5
Brick Breaker play area. Use the Start button and the arrow keys to play.

Brick Breaker

Move with your mouse or finger, then click to launch. Arrow keys work too.

Press Start to play Brick Breaker.

Mouse, touch or ←/→ and A/D move the paddle. Space or Enter launches and pauses; P pauses, R restarts. Capsules: M multi-ball, W wide paddle, S slow ball.

Examples

First serve

Input
Level 1, ball parked on the paddle
Output
Ball travels upward at 300 px/s

Clicking or pressing Space launches the ball; it sticks to the paddle until then.

About this game

Brick Breaker is a paddle-and-ball arcade game drawn entirely on a canvas. The ball reflects off the walls, the paddle and a grid of bricks; clearing every brick advances to a faster layout with more rows and tougher multi-hit bricks. Three lives carry across five levels, and each destroyed brick scores points multiplied by the level and by streaks built without touching the paddle.

The simulation runs at a fixed 120 Hz inside requestAnimationFrame, so the physics feel is identical on fast and slow displays. Paddle hits steer the rebound by up to 60 degrees depending on where the ball lands, brick collisions resolve on the axis with the smaller overlap, and substeps keep fast balls from tunnelling through bricks. Switch tabs and the game pauses itself.

Move with a mouse, finger, arrow keys or A/D; Space and Enter launch and pause, P pauses and R restarts. Broken bricks sometimes drop labelled capsules: M adds a ball, W widens the paddle and S slows the ball. The score, best score, lives and level live in DOM text rather than inside the canvas, so assistive technology can follow the game.

What this game does not do

  • Canvas gameplay needs a browser with Canvas 2D support; the HUD and controls remain plain DOM text.
  • Only the best score is saved locally; mid-run progress is not restored after a refresh.

How to use this game

  1. Start a run

    Press Start, then move the paddle with your mouse, finger or the arrow keys.

  2. Launch the ball

    Click or tap the play area, or press Space or Enter. The ball starts above the paddle.

  3. Steer the rebound

    Catch the ball near the paddle centre for a vertical bounce, or near an edge to angle it into a gap.

  4. Catch capsules

    M splits the ball, W widens the paddle for twelve seconds, and S slows the ball for eight seconds.

  5. Advance and restart

    Clear all bricks for the next level; losing the last ball costs a life. Pause with P or Space, restart with R or Reset.

Use cases

A quick arcade break

Play a compact, asset-free game that loads instantly and needs no account or download.

Learning collision code

Read a small, deterministic physics engine with axis-resolution brick collisions and fixed-timestep updates.

Keyboard-only play

Move with the arrow keys, serve and pause from the keyboard, and follow the game through DOM text.

Common mistakes

Mistake:Chasing the ball with the edge of the paddle at every bounce.

Fix:Aim with the hit position: edge hits leave at up to 60 degrees, which is useful for reaching a new column but harder to track.

Mistake:Ignoring multi-hit bricks.

Fix:Digits printed on bricks show remaining hit points; tinted tiers need two or three hits before they score.

Frequently asked questions

How do I control the paddle?

Move your mouse or drag a finger over the play area, or use the left and right arrow keys (or A and D). Click, tap, Space or Enter launches the ball; P or Space pauses and R restarts.

What do the power-up capsules do?

Capsules are labelled with a letter as well as a colour: M adds a second ball, W makes the paddle 40% wider for twelve seconds, and S slows every ball to 70% speed for eight seconds. Effects refresh if you catch the same capsule again.

Does the ball speed up?

Yes. Each of the five levels starts with a faster ball and a denser brick layout, and the speed rises again when you clear a level. The physics run at a fixed 120 Hz so bounces stay predictable.

How is the score calculated?

Each brick has hit points (1, 2 or 3) shown on the brick. Destroying one scores ten points per hit point, multiplied by the level number and by a streak bonus that grows every five bricks broken without touching the paddle.

Are my scores saved?

Your best score is stored in this browser's local storage. Nothing about your play is uploaded, and a refresh starts a fresh run while keeping the record.

Does it work with touch screens?

Yes. Touch and drag anywhere over the play area to slide the paddle, and tap to launch. The page uses a fixed logical canvas scaled to your screen, so layout and timing stay the same on mobile.