iOS Game Programming with Xcode and Cocos2d v1.4 - PDF
The first book by professional software instructor and owner of CartoonSmart.com, teaches iOS game programming with Xcode and Cocos2d. Learn with high resolution images, interactive galleries, video examples to demonstrate the results of a project, and color coded examples throughout the entire book. Anyone learning Cocos2d, beginner or otherwise, will benefit from this comprehensive book.
Topics to get you started include: using Xcode for the first time, installing the Cocos2d templates, common warnings, supporting iOS orientations, adding Retina Display images, writing flexible code for old and new devices like the iPhone 5 and iPad 3 and building your first app.
The basic chapters teach both Objective C and Cocos2d for beginners. Topics include variables, if statements, while / for / switch statements, methods, CCSprites, positioning objects, declaring variables in a header file, scheduling methods, child hierarch, basic properties of CCNodes, creating your own classes, initializing classes with parameters, iterating through children in a scene, and much more.
Topics specific to game programming include: collision detection, platform / side scroller style collisions, how to program a virtual joystick, handling gestures / multiple touches, the accelerometer, CCActions, 3D effects, animation classes, scrolling backgrounds, sprite sheet generation, particles, menus / buttons, sound FX, score boards, property lists, singleton classes, game engines, points, health meters, leveling up, and much more!