How to Make a Brick Breaker Game
Brick breakers feel random until the paddle gives players control of the angle. Here is the bounce math, the collision details and the level design that make them skillful.

Key takeaways
- Set the bounce angle from where the ball hits the paddle, not from physics. It turns luck into aim.
- Keep the ball from going nearly horizontal and from tunneling through bricks at high speed.
- Levels are text grids of brick types; power-ups drop from a small share of bricks and include a few risky ones.
To make a brick breaker game (the Breakout and Arkanoid genre), you need a paddle the player moves, a ball that bounces off walls and bricks, a rule that lets the player aim by where the ball hits the paddle, sturdy collision so the ball never passes through bricks, and levels laid out as grids of bricks with a few special types and power-ups. The paddle angle rule is the single most important piece, so this guide starts there.
Paddle angle control
If the ball bounces off the paddle like a mirror, the player can only choose whether to catch it, not where it goes. Classic brick breakers instead set the outgoing angle from where the ball hits the paddle:
- 01Compute the hit offset: (ball x − paddle center x) ÷ (paddle width ÷ 2). That gives a value from −1 (left edge) to +1 (right edge).
- 02Outgoing angle = offset × max angle, measured from straight up. A max angle around 60 to 70 degrees works well.
- 03Set the ball’s velocity from that angle and its current speed: x = speed × sin(angle), y = −speed × cos(angle).
A center hit sends the ball straight up; an edge hit sends it out at a sharp angle. Now the player aims, and the game becomes about positioning, not just reflexes. Some games also add a little of the paddle’s movement to the ball (“english”), which feels good but makes aiming less predictable. Start without it.
Ball movement and collision
Brick breakers do not need a physics engine. The ball moves in a straight line at a constant speed, and you handle bounces yourself. Three details separate a solid game from a buggy one:
- Minimum vertical speed. If the ball goes nearly horizontal, it bounces between the side walls for ages. Clamp the angle so the ball always has meaningful vertical movement (no shallower than about 15 to 20 degrees from horizontal).
- No tunneling. At high speed, a ball can move farther in one frame than a brick is tall and skip past it. Move the ball in several smaller steps per frame (sub-steps), or sweep the ball’s path against bricks, so every collision is caught.
- Which side was hit. When the ball hits a brick, reflect the horizontal speed if it hit a side and the vertical speed if it hit the top or bottom. Decide by comparing how deep the overlap is on each axis, or by which edge the swept path crossed first. Getting this wrong causes the ball to tunnel through rows or bounce oddly at corners.
- One brick per step. If the ball overlaps two bricks at once, break the nearest and bounce once, or it can reverse twice and continue straight.
Speed should rise during a level: a small increase every 10 or so paddle hits, or when the ball first reaches the top rows, with a cap. Reset speed when a life is lost. For the shake, flashes and sounds that make each brick break satisfying, see the game feel and juice guide.
Brick types
- Normal: one hit.
- Tough: two or three hits, with visible cracks or color changes as they weaken.
- Unbreakable: shapes the level and creates angles to aim around. Never count them toward clearing the level.
- Explosive: breaks neighbors in a radius when hit. Chain reactions are the genre’s spectacle.
- Moving or regenerating bricks for later worlds, used sparingly.
Level layouts as text
A brick breaker level is a grid, so write it as one. A layout of 11 to 13 columns and 8 to 12 rows fits phones in portrait. Use a character per brick type: `.` empty, `1` normal, `2` tough, `#` unbreakable, `*` explosive. Then each level is a few short lines of text, easy to design on paper or ask the agent to produce in bulk. The level design basics guide covers how to order those layouts so each one teaches something new.
- Shapes are fun. Hearts, faces, letters, a space invader. Players enjoy recognizing a picture as they break it.
- Pockets: a cluster of bricks behind unbreakables with one gap rewards aiming. Getting the ball behind a wall, where it ricochets on its own, is the best feeling in the genre.
- The last brick problem: the final one or two bricks can take ages to hit. Help with a slightly larger paddle late in the level, a magnet power-up, or place last bricks where angles reach them easily.
- Ramp across levels: more tough bricks, then unbreakable layouts, then explosives, each introduced in a level that showcases it.
Power-ups
Power-ups fall from broken bricks (around one brick in eight to ten is a reasonable starting rate) and activate when the paddle catches them. A mix of helpful and risky ones keeps the decision interesting:
- Multiball: splits the ball into three. The most loved power-up.
- Wide paddle: makes the paddle 50 percent wider for a while.
- Laser: the paddle fires upward when tapped.
- Sticky paddle: the ball sticks on contact and launches on tap, so the player can aim precisely.
- Slow ball: lowers speed for a while.
- Risky ones: shrink paddle, fast ball. Players learn to dodge them, which adds a second thing to watch.
Each power-up needs a distinct color and letter or icon, and a sound when caught. Timed power-ups should show a small timer near the paddle.
Controls on phones
On phones, the paddle follows the finger’s horizontal position, but offset the touch area below the paddle so the finger does not hide the ball and the paddle. Let the player touch anywhere in the lower third and move relatively (the paddle moves as the finger moves, without jumping to the finger). On desktop, the mouse or arrow keys. Launch the ball with a tap, from the paddle, after a short pause at the start of each life. The touch controls guide covers the browser settings that stop the page from scrolling while a finger drags the paddle.
The brief to paste
A brick breaker game for phones, portrait, with a neon arcade look. The paddle follows the finger horizontally using relative drag anywhere in the bottom third (mouse or arrow keys on desktop); the ball launches with a tap. Bounce angle from the hit position on the paddle: offset from −1 to +1 times 65 degrees from vertical. Never let the ball go shallower than 18 degrees from horizontal. Move the ball in sub-steps so it never tunnels through bricks; reflect on the correct axis and break only one brick per step. Speed rises slightly every 8 paddle hits, capped, and resets when a life is lost. 3 lives. Levels are text grids of 12 columns (. empty, 1 normal, 2 two-hit, # unbreakable, * explosive). Power-ups drop from about 1 brick in 9: multiball, wide paddle, laser, sticky paddle, slow ball, and a shrink paddle to avoid. 10 levels, each a recognizable shape, introducing unbreakables at level 4 and explosives at level 7.
Pitfalls
- Mirror bounces off the paddle. The game feels random. Use angle control.
- Endless horizontal ball. Clamp the minimum angle.
- Ball inside a brick. A tunneling or axis bug. Test at maximum speed into corners.
- Too many power-ups. If something drops every few bricks, the screen gets noisy and power-ups stop feeling special.
You can tweak level layouts and brick positions by hand in the World Editor after the agent sets up the first level. Brick breakers suit both quick sessions and level-by-level play; if you like the arcade loop, the one-tap arcade guide covers juice and instant restarts that apply here too. See more ideas in the games use case. When it is ready, publishing a web game walks through the link, the title and the first plays.
Frequently asked questions
How does the paddle control the ball angle in Breakout?
The outgoing angle depends on where the ball hits the paddle. A hit in the center sends it straight up, and hits toward the edges send it out at sharper angles, up to a maximum of around 60 to 70 degrees.
Why does my ball go through bricks?
At high speed the ball can move farther than a brick’s size in one frame. Move it in several smaller steps per frame or sweep its path against the bricks so every collision is detected.
How often should power-ups drop?
Around one brick in eight to ten is a reasonable start. Fewer feels stingy, more makes the screen cluttered and power-ups less special.

