Monkey Game Development:Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Hold that data—RocketCommander's data structure

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.