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
aanddand can make a selection by pressing enter. - Notice that this state is now in charge of transitioning over to
ServeStateand passing along the relevant values instead ofTitleScreenState.
Files
Preparing Environment