Now that we have configured our application to landscape mode and set the display contents to scale on multiple devices, we're ready to start designing the game. Before we start writing some code for the game, we need to add in some art assets that will be displayed on the screen. You can find them in the Chapter 3 Resources
folder. You can download the project files accompanying this book from the Packt website. The following files that you'll need to add to your Breakout
project folder are as follows:
alertBox.png
bg.png
mmScreen.png
ball.png
paddle.png
brick.png
playbtn.png
An important function we'll be introducing in this game is display.newGroup()
. Groups allow you to add and remove child display objects. Initially, there are no children in a group. The local origin is at the parent object's origin; the reference point is initialised to this local origin. You can easily organize your display objects in separate groups and refer to them by their group...