Chapter 4. Designing a two-player ball-and-paddle game

A fight breaks out over breakfast, and there is only one way to settle it: bounce a fried egg between two cast-iron skillets without letting it hit the wall. This two-player game ends when one person reaches seven points by making their opponent miss the egg. Breakfast Wars is a remake of the first ball-and-paddle game, Pong, though it replaces Pong’s white line paddle with a pan and its LED light with an egg, as seen in figure 4.1.

Figure 4.1. A game of Breakfast Wars means making a purple backdrop, a fried egg, two skillets, and two lines to serve as walls.

Breakfast Wars is all the ...

Get Hello Scratch! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.