Leave without saving?

Your editor changes will be lost.

Breakout-7 introduces a new state that allows the user to select a paddle skin before starting the game.

Important Code

  • In PaddleSelectState.js, we render a new screen to the user which contains some text, a left arrow, a right arrow, and a paddle.
  • The user can toggle between paddles using a and d and can make a selection by pressing enter.
  • Notice that this state is now in charge of transitioning over to ServeState and passing along the relevant values instead of TitleScreenState.
Powered by WebContainers
Files
Preparing Environment