Chapter 4
Create Your Own Class
Are you ready to learn about animation, touches, particles, and all sorts of other awesome topics? Great. That's next chapter. Or maybe the one after that.
This chapter we are going to learn about creating your own classes. I know. I can hear some of you groaning, but a good class is like breathing air. You won't realize how much you need it until you're underwater. Or worse, trapped in a sinking car thinking, “I remember seeing an oxygen tank labeled Chapter 4!”
Section 1
Put On Your Classes Glasses
We've talked plenty in this book about using classes already. CCSprite is a class, for example. It ...
Get iOS Game Programming with Xcode and Cocos2d now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.