Chocobreak

Bounce the ball and smash every brick. Chocobreak shows bouncing, collisions and lives, and it is the game the tutorial builds.

Chocobreak โ€” NutHouse
The Chocobreak level: four rows of ten bricks, a paddle at the bottom and a ball above it
Forty bricks, one paddle, one ball.

What it shows

Shows: Bouncing, collisions, lives. It has one level and seven rules. If you want to build it yourself, step by step, press ๐ŸŽ“ Learn and follow the tutorial. See About the tutorial.

How to play

Press โ† and โ†’ to slide the paddle. Keep the ball in the air. Every brick is worth 10 points. If the ball falls off the bottom you lose a life. Smash all 40 bricks and You Win! appears.

The things in it

PaddleArrow keys (8 directions), Left/Right only, Speed 60.
BallBouncing ball, Speed 30, starts moving Up diagonals, with a little Wobble when bouncing so it never gets stuck in a loop.
BrickStays still. Ten columns and four rows, placed with Make gridโ€ฆ.
Score, LivesShown at the top corners.
You WinA big yellow Text with Visible when the level starts off.

The rules, one by one

Chocobreak โ€” Events
The Events tab of Chocobreak in List view, seven rules
Switch to List and the rules read like sentences.
WhenPaddle leaves the play area (left, right)
DoStop Paddle

The paddle cannot slide off the sides. Stop steps it back onto the screen.

WhenBall collides with Brick
DoDestroy BrickBounce BallAdd 10 to the score

Only the brick that was hit is destroyed, because the condition picks only that one.

WhenBall collides with Paddle
DoBounce Ball

A bouncing ball flies straight until a rule says Bounce. Without this rule it would go through the paddle.

WhenBall leaves the play area (top, left, right)
DoBounce Ball

The top and the two sides are walls. The bottom is left out on purpose.

WhenBall leaves the play area (bottom)
DoSubtract 1 from the livesSet position of Ball to 0, โˆ’24 from Paddle

Falling off the bottom costs a life. The ball goes back to a spot 24 pixels above the paddle, wherever the paddle is.

WhenLives = 0
DoRestart the game

This one is not red. It is checked all the time, and acts the moment the lives run out.

WhenNumber of Brick = 0
DoShow You WinStop Ball

When every brick is gone, the hidden message appears and the ball stops.

Three changes to try

  1. Bigger points. In the Events tab, find rule 2. Click the โœ“ in the โ˜บ Player 1 column, then the โœŽ next to Add to score. Change 10 to 50.
  2. A faster ball. In the Level tab click the ball. On the right, change Speed from 30 to 45. Play it. Harder?
  3. A boing. In the sidebar click + Built-in sound and choose Bounce. In rule 3, click the โ™ช Sound cell and add Play a sound โ†’ Bounce.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.