E-book details

Cocos2d for iPhone 1 Game Development Cookbook. Over 100 recipes for iOS 2D game development using cocos2d

Cocos2d for iPhone 1 Game Development Cookbook. Over 100 recipes for iOS 2D game development using cocos2d

Nathan Burba

Ebook
Cocos2d for iPhone is a robust but simple-to-use 2D game framework for iPhone. It is easy to use, fast, flexible, free, and Appstore approved. More than 2500 AppStore games already use it, including many best-seller games. Do you want to take your cocos2d game development skills to the next level and become more professional in cocos2d game design?

Cocos2d for iPhone 1 Game Development Cookbook will help you reach that next level. You will find over 100 recipes here that explain everything from the drawing of a single sprite to AI pathfinding and advanced networking. Full working examples are emphasized.

Starting with the first chapter, Graphics, you will be taken through every major topic of game development. You will find both simple and complex recipes in the book.

Each recipe is either a solution to a common problem (playing video files, accelerometer steering) or a cool advanced technique (3D rendering, textured polygons).

This cookbook will have you creating professional quality iOS games quickly with its breadth of working example code.
  • Cocos2d for iPhone 1 Game Development Cookbook
    • Table of Contents
    • Cocos2d for iPhone 1 Game Development Cookbook
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Graphics
      • Introduction
      • Drawing sprites
        • Getting ready
        • How to do it...
        • How it works...
      • Coloring sprites
        • Getting ready
        • How to do it...
        • How it works...
      • Animating sprites
        • Getting ready
        • How to do it...
        • How it works...
        • Theres more...
      • Drawing OpenGL primitives
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Playing video files
        • Getting ready
        • How to do it...
        • How it works...
      • Grid, particle, and motion streak effects
        • Getting ready
        • How to do it...
        • How it works...
      • Using Retina Display mode
        • Getting ready
        • How to do it...
        • How it works...
      • 1D and 2D Ease Actions
        • Getting ready
        • How to do it...
        • How it works...
      • Rendering and texturing 3D shapes
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Rendering a texture-filled polygon
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Animating a texture-filled polygon
        • Getting ready
        • How to do it...
        • How it works...
      • Swapping palettes using layers
        • Getting ready
        • How to do it...
        • How it works...
      • Swapping palettes using CCTexture2DMutable
        • Getting ready
        • How to do it...
        • How it works...
      • Using AWTextureFilter for blur and font shadows
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Taking and using screenshots
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Using CCParallaxNode
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Lighting using glColorMask
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
    • 2. User Input
      • Introduction
      • Tap, hold, and drag input
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Depth testing input
        • Getting ready
        • How to do it...
        • How it works...
      • Creating buttons
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a directional pad
        • Getting ready
        • How to do it...
        • How it works...
      • Creating an analog stick
        • Getting ready
        • How to do it...
        • How it works...
      • Using the accelerometer for steering
        • Getting ready
        • How to do it...
        • How it works...
      • Using the accelerometer for 3D rotation
        • Getting ready
        • How to do it...
        • How it works...
      • Pinch zooming
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Performing gestures
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
    • 3. Files and Data
      • Introduction
      • Reading PLIST data files
        • Getting ready
        • How to do it...
        • How it works...
      • Reading JSON data files
        • Getting ready
        • How to do it...
        • How it works...
      • Reading XML data files
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Saving simple data using NSUserDefaults
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Archiving objects into archive files
        • Getting ready
        • How to do it...
        • How it works...
      • Mutating nested metadata
        • Getting ready
        • How to do it...
        • How it works...
      • Saving data into a PLIST file
        • Getting ready
        • How to do it...
        • How it works...
      • Saving data into an SQLite database
        • Getting ready
        • How to do it...
        • How it works...
      • Saving data using Core Data
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
    • 4. Physics
      • Introduction
      • Box2D setup and debug drawing
        • Getting ready
        • How to do it...
        • How it works...
      • Creating collision response routines
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
      • Using different shapes
        • Getting ready
        • How to do it...
        • How it works...
      • Dragging and collision filtering
        • Getting ready
        • How to do it...
        • How it works...
      • Manipulating physical properties
        • Getting ready
        • How to do it...
        • How it works...
      • Applying impulses
        • Getting ready
        • How to do it...
        • How it works...
      • Applying forces
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Asynchronous body destruction
        • Getting ready
        • How to do it...
        • How it works...
      • Using joints
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a vehicle
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
      • Character movement
        • Getting ready
        • How to do it...
        • How it works...
      • Simulating bullets
        • Getting ready
        • How to do it...
        • How it works...
      • Simulating and rendering a rope
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a top-down isometric game engine
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
    • 5. Scenes and Menus
      • Introduction
      • Switching scenes
        • Getting ready
        • How to do it...
        • How it works...
      • Transitioning between scenes
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Using CCLayerMultiplex
        • Getting ready
        • How to do it...
        • How it works...
      • Using CCLabel
        • Getting ready
        • How to do it...
        • How it works...
      • Using CCMenu
        • Getting ready
        • How to do it...
        • How it works...
      • Creating shadowed menu labels
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
      • UIKit alert dialogs
        • Getting ready
        • How to do it...
        • How it works...
      • Wrapping UIKit
        • Getting ready
        • How to do it...
        • How it works...
      • Creating draggable menu windows
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a horizontal scrollable menu
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a vertical sliding menu grid
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a loading screen with an indicator
        • Getting ready
        • How to do it...
        • How it works...
      • Creating a minimap
        • Getting ready
        • How to do it...
        • How it works...
    • 6. Audio
      • Introduction
      • Playing sounds and music
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
      • Modifying audio properties
        • Getting ready
        • How to do it...
        • How it works...
        • There's More...
      • Fading sounds and music
        • Getting ready
        • How to do it...
        • How it works...
      • Using audio in a game
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Using positional audio in a game
        • Getting ready
        • How to do it...
        • How it works...
      • Metering background music
        • Getting ready
        • How to do it...
        • How it works...
      • Metering dialogue for animation
        • Getting ready
        • How to do it...
        • How it works...
      • Streaming audio
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Recording audio
        • Getting ready
        • How to do it...
        • How it works...
      • Using the iPod music library
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Creating a MIDI synthesizer
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Speech recognition and text-to-speech
        • Getting ready
        • How to do it...
        • How it works...
    • 7. AI and Logic
      • Introduction
      • Processing AI waypoints
        • Getting ready
        • How to do it...
        • How it works...
      • Firing projectiles at moving targets
        • Getting ready
        • How to do it...
        • How it works...
      • AI line of sight
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • AI flocking using Boids
        • Getting ready
        • How to do it...
        • How it works...
      • A* pathfinding on a grid
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • A* pathfinding in a Box2D world
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • A* pathfinding on a TMX tilemap
        • Getting ready
        • How to do it...
        • How it works...
      • A* pathfinding in a side-scroller
        • Getting ready
        • How to do it...
        • How it works...
      • Running a Lua script
        • Getting ready
        • How to do it...
        • How it works...
      • Dynamically loading Lua scripts
        • Getting ready
        • How to do it...
        • How it works...
      • Using Lua for dialogue trees
        • Getting ready
        • How to do it...
        • How it works...
    • 8. Tips, Tools, and Ports
      • Introduction
      • Accessing the Cocos2d-iPhone testbed
        • Getting ready
        • How to do it...
        • How it works...
          • Box2D testbed
      • Packing textures using Zwoptex
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Creating levels using Tiled
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Creating levels using JSONWorldBuilder
        • Getting ready
        • How to do it...
        • How it works...
      • Creating scenes with CocosBuilder
        • Getting ready
        • How to do it...
        • How it works...
      • Using Cocos2d-X
        • Getting ready
        • How to do it...
        • How it works...
      • Using Cocos3d
        • Getting ready
        • How to do it...
        • How it works...
      • Releasing your app
        • Getting ready
        • How to do it...
    • Index
  • Title: Cocos2d for iPhone 1 Game Development Cookbook. Over 100 recipes for iOS 2D game development using cocos2d
  • Author: Nathan Burba
  • Original title: Cocos2d for iPhone 1 Game Development Cookbook. Over 100 recipes for iOS 2D game development using cocos2d
  • ISBN: 9781849514019, 9781849514019
  • Date of issue: 2011-12-15
  • Format: Ebook
  • Item ID: e_3bo6
  • Publisher: Packt Publishing