Adding a menu to our game
Right now, we only see the game logo on our introduction screen. We need to add buttons to start the game and also for the option to play a tutorial.
In order to do that, we'll use a special kind of Layer
class, called Menu
.
Menu
is a collection of MenuItems
. The layer is responsible for distributing its items as well as tracking touch events on all items. Items can be sprites, labels, images, and so on.