The game will have the following objects:
Layers
A title screen
A menu screen
A game background
Gems
The gem selector
Particle effects
Just like before, layers will help us to organize other objects and just work on the ones we need at a certain state of the game. These layers will be used in the listed order:
Background layer
Game layer
GFX layer
Game over layer
Menu layer
Score layer
Title layer
The background layer will hold some info text and the play field grid. The game layer will contain the various gems and the gem selector. The GFX layer holds the particle effects. To display the "Game Over" message, we will utilize the game over layer. To display the game menu, the menu layer will contain all the buttons to press. As we want to know which the highest score is, we need a score layer. And finally, the title layer will serve the purpose of displaying the game title.