In every game, you also need to store some data. As the main objects will be created with their own classes, the RocketCommander class will have some definitions that store the state of the game, canvas sizes, and stuff like that.
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.