Book description
Over 100 recipes for iOS 2D game development using cocos2d
- Discover advanced Cocos2d, OpenGL ES, and iOS techniques spanning all areas of the game development process
- Learn how to create top-down isometric games, side-scrolling platformers, and games with realistic lighting
- Full of fun and engaging recipes with modular libraries that can be plugged into your project
In Detail
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.
"Table of contents
-
Cocos2d for iPhone 1 Game Development Cookbook
- Cocos2d for iPhone 1 Game Development Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Graphics
- 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 shapes
- 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
- 2. User Input
- 3. Files and Data
-
4. Physics
- Introduction
- Box2D setup and debug drawing
- Creating collision response routines
- Using different shapes
- Dragging and collision filtering
- Manipulating physical properties
- Applying impulses
- Applying forces
- Asynchronous body destruction
- Using joints
- Creating a vehicle
- Character movement
- Simulating bullets
- Simulating and rendering a rope
- Creating a top-down isometric game engine
-
5. Scenes and Menus
- Introduction
- Switching scenes
- Transitioning between scenes
- Using CCLayerMultiplex
- Using CCLabel
- Using CCMenu
- Creating shadowed menu labels
- UIKit alert dialogs
- Wrapping UIKit
- Creating draggable menu windows
- Creating a horizontal scrollable menu
- Creating a vertical sliding menu grid
- Creating a loading screen with an indicator
- Creating a minimap
-
6. Audio
- Introduction
- Playing sounds and music
- Modifying audio properties
- Fading sounds and music
- Using audio in a game
- Using positional audio in a game
- Metering background music
- Metering dialogue for animation
- Streaming audio
- Recording audio
- Using the iPod music library
- Creating a MIDI synthesizer
- Speech recognition and text-to-speech
-
7. AI and Logic
- Introduction
- Processing AI waypoints
- Firing projectiles at moving targets
- AI line of sight
- AI flocking using Boids
- A* pathfinding on a grid
- A* pathfinding in a Box2D world
- A* pathfinding on a TMX tilemap
- A* pathfinding in a side-scroller
- Running a Lua script
- Dynamically loading Lua scripts
- Using Lua for dialogue trees
- 8. Tips, Tools, and Ports
Product information
- Title: Cocos2d for iPhone 1 Game Development Cookbook
- Author(s):
- Release date: December 2011
- Publisher(s): Packt Publishing
- ISBN: 9781849514002
You might also like
book
Metal Programming Guide: Tutorial and Reference via Swift
Master Metal: The Next-Generation Graphics and GPU Programming Platform for Apple Developers Metal enables Apple developers …
book
The GuruBook
The GuruBook is an inspiring collection of 45 articles and interviews with well-known thought leaders and …
book
Swift in Depth
Swift in Depth guides you concept by concept through the skills you need to build professional …
book
C++ Core Guidelines Explained: Best Practices for Modern C++
Write More Elegant C++ Programs “We are very pleased to see Rainer Grimm applying his teaching …