Breakout Game: Bounce the Ball, Clear the Wall
Breakout is pure timing: keep the ball alive with the paddle and let it eat through the wall, brick by brick. Miss the ball and you start the rally again.
What is the Breakout Game?
Choose a difficulty and a number of simulation steps. The tool steps a ball across a brick wall in text form, bouncing off walls, the paddle, and bricks. In the browser, a live canvas game appears below the result, with the paddle following your mouse or arrow keys.
How to use it
- Pick a difficulty.
- Set how many simulation steps to run.
- Click Simulate Breakout; in the browser, play the live canvas game with mouse or arrow keys.
Worked example
On easy, 60 simulation steps move the ball up through the brick rows, bouncing off the side walls and breaking bricks as it passes.
How do I control the paddle in the browser?
Move your mouse over the canvas, or use the left and right arrow keys to slide the paddle.
Frequently asked questions
What happens when the ball misses the paddle?
The ball resets to the middle of the screen so you can serve again.
Does the text simulation play the game for me?
No. The text steps show the state machine; the live game is the canvas version in the browser.