万本电子书0元读

万本电子书0元读

顶部广告

Cocos2d for iPhone 1 Game Development Cookbook电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Nathan Burba

出  版  社:Packt Publishing

出版时间:2011-12-15

字       数:200.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is full of fun and engaging recipes with modular libraries that can be plugged into your project. Each recipe consists of explained code accompanied by screenshots for your understanding. If you want to elevate your basic Cocos2d project to the next level, this is the book for you. Some understanding of Objective-C and Cocos2d is recommended. People with some programming experience may also find this book useful.
目录展开

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...

There's 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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部