万本电子书0元读

万本电子书0元读

顶部广告

Cocos2d Game Development Blueprints电子书

售       价:¥

5人正在读 | 2人评论 9.8

作       者:Jorge Jordán

出  版  社:Packt Publishing

出版时间:2015-01-30

字       数:264.1万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Whether you are a passionate gamer, like developing, or are just curious about game development, this book is for you. The book has been written to teach 2D game development to app developers and to teach Objective-C to game developers, as learning Cocos2d is the perfect step for both roles.
目录展开

Cocos2d Game Development Blueprints

Table of Contents

Cocos2d Game Development Blueprints

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

Cocos2d v3.0

Pure Objective-C

ARC

CCDirector

CCLayer

CCArray

OALSimpleAudio

CCAction

CCActionCallBlock

Sequences

Schedule update

Enabling touches

Accelerometer events

Physics

What this book covers

What you need for this book

Who this book is for

Conventions

1-star challenge – accurate collision detection

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Sprites, Sounds, and Collisions

Creating a new Cocos2d project

Run Xcode Run

Understanding the default project

CCNode

Your first game – RunYetiRun

Creating the CCScene class

Adding the first CCSprite class

Anchor points

Placing things in context

Time for CCAction

Actions under control

Throwing some snowballs

Rolling down the hill

Managing collisions

Adding labels

CCLabelTTF

Updating labels

Making some noise

OALSimpleAudio

Voice memos

Audacity

GarageBand

Audio resources

Playing audio files

Game over

1-star challenge – accurate collision detection

The solution

2-star challenge – having three lives

The solution

Summary

2. Explosions and UFOs

Handling the accelerometer input

Linking the CoreMotion framework

onEnter and onExit

Converting accelerometer input into movements

Calibrating the accelerometer

Implementing the parallax effect in Cocos2d

CCParallaxNode

Particle systems

CCParticleSystem

CCParticleSystem modes

CCParticleSystemModeGravity

CCParticleSystemModeRadius

Common properties

Particle Designer

Extending CCSprite

Shooting some lasers

When UFOs collide

2-star challenge – create explosions

The solution

The attack of the aliens

Drawing and coloring

Drawing the life bar

1-star challenge – collision detection between Dr. Fringe and the UFO

The solution

Summary

3. Your First Online Game

Getting started with our project

Initializing the game

Creating labels with CCLabelBMFont

Littera

CCActions in depth

Drag, drop, and scale

Game Center

Configuring Game Center in iTunes Connect

Configuring the game in Xcode

Checking Game Center's availability

Authenticating the player

Turn-based games

The first turn

Passing the turn

Receiving the turn

Fighting cards

Labels for life points

Match over

Viewing the status when it's not our turn

Summary

4. Beat All Your Enemies Up

Creating an iPad-only game

Image sizes and names

Developing virtual game controls

Moving the zombie

CCSpriteBatchNode

Texture atlases

Creating texture atlases with TexturePacker

Loading texture atlases with Cocos2d

Creating your first animation

3-star challenge – hitting the air

The solution

Creating the zombie class

Creating the human enemies class

Keeping the main character in view

Taking human decisions

Drawing a life bar

Detecting collisions with enemies

2-star challenge – enemies' life bar

Game over

Summary

5. Scenes at the Highest Level

Initializing the game

Developing a tutorial for our game

Storing data using NSUserDefault

Loading data from external files

Transitions

3-star challenge – create a map scene

Summary

6. Physics Behavior

Physics engines

Game physics in Cocos2d

Introducing Chipmunk

CCPhysicsNode

CCPhysicsBody

Creating your first physics

CCPhysicsShape

Creating sprites with physics

Defining shapes

PhysicsEditor

Defining shapes

Loading PhysicsEditor shapes in Xcode

Advanced collision detection with Chipmunk

CCPhysicsBody and CCPhysicsShape properties

CCPhysicsCollisionDelegate

Creating a snooker game with Chipmunk

Setting the snooker table

Configuring the snooker balls

Hitting the cue ball

Managing collisions between snooker bodies

Summary

7. Jump and Run

Initializing the game

Configuring a varied scene

Scrolling the background and blocks

Coding custom physics

Jumping over the platforms

Adding a menu to the game

2-star challenge – adding pinecones to the scene

The solution

1-star challenge – adding a score label

The solution

Summary

8. Defend the Tower

Initializing the game

Developing a pathfinding algorithm

Following the path

Predefining defensive positions

Placing defenses

Giving AI to the defenses

Sharing information between nodes

Loading waves of enemies

2-star challenge – adding explosions

3-star challenge – upgrading defenses

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部