In this chapter, we implemented our first iPad game, our first simultaneous two-player game, and our first two-player Bluetooth game. We spent some time learning about how we can optimize our images to make a lot out of very few graphic assets. We also saw how we can create a simple animated background using CCRenderTexture
, and used glScissor
to cut that moving image to fit a non-moving screen area.
We covered the basics of a GameKit two player game, and hopefully we had some fun along the way. There is a lot to learn about optimization for networked games, and we have so far only scratched the surface with what is possible. There is also a whole world of other connectivity and lag issues you will face when you branch out to include Internet-based multiplayer games. If you are interested in exploring that, I advise you to read up on Apple's documentation and use your favorite search engine to find other resources, as network communication code is a specialty unto itself.
In the next...