Let's summarize what has been made to make sure that you have everything added into your game. You can also refer to the Breakout Final
folder in the Chapter 4
folder to see the final code. You made sure that the necessary variables were introduced in the game. You also initialized the main()
function that starts the game play. A main menu screen was implemented with the game title and a play button.
Next, you transitioned the menuScreenGroup
away from the screen to load the main playing field. The main display objects of the game, such as the paddle, ball, and bricks, were added. The score and level number were displayed as the UI elements and updated throughout game play. Paddle movement in both the simulator and accelerometer were added as well as the collision detection with the paddle and the ball.
The physical properties of the paddle and ball were added at the start of the game. The brick layouts for each of the two levels were created. You have also added event...