更新时间:2021-08-06 19:13:54
coverpage
Cocos2d Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
Cocos2d v3.0
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Sprites Sounds and Collisions
Creating a new Cocos2d project
Run Xcode Run
CCNode
Your first game – RunYetiRun
1-star challenge – accurate collision detection
2-star challenge – having three lives
Summary
Chapter 2. Explosions and UFOs
Handling the accelerometer input
Implementing the parallax effect in Cocos2d
Particle systems
Extending CCSprite
2-star challenge – create explosions
Drawing and coloring
1-star challenge – collision detection between Dr. Fringe and the UFO
Chapter 3. Your First Online Game
Getting started with our project
Initializing the game
Creating labels with CCLabelBMFont
CCActions in depth
Drag drop and scale
Game Center
Chapter 4. Beat All Your Enemies Up
Creating an iPad-only game
Developing virtual game controls
Moving the zombie
CCSpriteBatchNode
Texture atlases
Creating your first animation
3-star challenge – hitting the air
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
Chapter 5. Scenes at the Highest Level
Developing a tutorial for our game
Storing data using NSUserDefault
Loading data from external files
Transitions
3-star challenge – create a map scene
Chapter 6. Physics Behavior
Physics engines
Game physics in Cocos2d
Introducing Chipmunk
Creating your first physics
Creating sprites with physics
Defining shapes
Advanced collision detection with Chipmunk
Creating a snooker game with Chipmunk
Chapter 7. Jump and Run
Configuring a varied scene
Scrolling the background and blocks
Coding custom physics
Adding a menu to the game
2-star challenge – adding pinecones to the scene
1-star challenge – adding a score label
Chapter 8. Defend the Tower
Developing a pathfinding algorithm
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
Index