Introduction
This is a tutorial on how to make a 2D breakout game in Lenga. We will go through the process of creating a simple breakout game, where the player controls a paddle to bounce a ball and break bricks.

The Game
For this Lenga version, we will create a simplified breakout game with four rows of bricks, with one row each of a different color. The color order from the bottom up is yellow, green, orange and red. Using a single ball, the player must knock down as many bricks as possible by using the walls and the paddle below to hit the ball against the bricks and eliminate them. If the player's paddle misses the ball's rebound, they will lose a turn. Yellow bricks earn one point each, green bricks earn three points, orange bricks earn five points and the top-level red bricks score seven points each. Ball speed increases at specific intervals: after four hits, after twelve hits, and after making contact with the orange and red rows.
The highest score achievable in this version is 128 points, which is done by eliminating all bricks on the single screen. Once all the bricks are destroyed, the game is complete, and the ball harmlessly bounces off empty walls until the player restarts the game.
The original Breakout arcade game, released by Atari in 1976, featured artwork framing the game's plot as a prison escape. The player is one of a prison's inmates attempting to knock a ball and chain into a wall of their prison cell with a mallet. If the player successfully destroys the wall in-game, the inmate escapes with others following. We've kept this spirit of the classic game while adapting it for a simplified learning-friendly version in Lenga.
The Rules of the Game
The rules of the game are simple:
- The player controls a paddle to bounce a ball and break bricks.
- The ball bounces off the top, left, and right walls of the screen.
- The player loses a life if the ball falls below the paddle.
- The player wins the game if all the bricks are broken.