Chapter 1. Graphics
In this chapter, we will cover the following topics:
- Introduction
- Drawing sprites
- Coloring sprites
- Animating sprites
- Drawing OpenGL primitives
- Playing video files
- Grid, particle, and motion streak effects
- Using Retina Display mode
- 1D and 2D Ease Actions
- Rendering and texturing 3D Cubes
- Rendering a texture filled polygon
- Animating a texture filled polygon
- Swapping palettes using layers
- Swapping palettes using CCTexture2DMutable
- Using AWTextureFilter for blur and font shadows
- Taking and using screenshots
- Using CCParallaxNode
- Lighting using glColorMask
Introduction
Cocos2d is first and foremost a rich graphical API which allows a game developer easy access to a broad range of functionality. In this chapter we will go over some more advanced features ...
Get Cocos2d for iPhone 1 Game Development Cookbook 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.