Workshop › Breakout › Step 11 of 39
The bottom has no wall: that is where the ball is lost. For now, a ball that falls out starts again from the middle.
```js
if (ball.y - BALL_R > canvas.height) resetBall()
```ball.y - BALL_R > canvas.height is true when even the top edge is below the canvas: the ball is fully gone.if with a single command can be written on one line without { }.Write the line right under the ceiling if's closing }, still inside update.
Skills: Game states
← Bounce off the ceiling Bounce off the paddle →