Game Development Reference
In-Depth Information
The start project
If you run the Start Project option, you should see the basic game screen already in place.
There is no need to repeat the steps we've taken in our previous tutorial to create a batch
node and place all the screen sprites. We once again have a _gameBatchNode object and
a createGameScreen method.
But by all means, read through the code inside the createGameScreen method. What
is of key importance here is that each planet we create is stored inside the _planets vec-
tor. And we also create our _rocket object (the Rocket class) and our _lineCon-
tainer object (the LineContainer class) here. More on these soon.
In the Start Project option, we also have our old friend GameSprite , which extends
Sprite here with an extra method to get the radius() method of our sprites. The
Rocket object and all the planets are GameSprite objects.
Search WWH ::




Custom Search