Title scene
CODE
The title scene is an extension of the Pulpcore Scene2D class.
This is your bread and butter scene class used for rendering 2D scenes.
The first thing we will do is write a load function for the scene.
A scene will call its load function when it is created. It is the perfect place to load up all the resources needed to display the scene.
The first thing we do in our load function is to grab an instance of our resource singleton.
This is not a Pulpcore class and is just here to make loading resources a bit easier and neater for the example.
Next we create a Timeline object.
This is used to control animations we will get to this a bit later.
Next we make a group for our title screen sprites.
This is the group all our GUI elements will be added to.