Book Image

Cocos2d Game Development Blueprints

By : Jorge Jordán
Book Image

Cocos2d Game Development Blueprints

By: Jorge Jordán

Overview of this book

Table of Contents (15 chapters)
Cocos2d Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Sprites, Sounds, and Collisions

In the first chapter of this book, I will introduce you to the basics of developing games, specifically how to do it with Cocos2d. I'm sure that most of you have heard technical terms such as sprites and collisions before but how many of you know how to create and work with them? Throughout this chapter, I will teach you enough to answer this question and I will guide you through building a horizontal scrolling game similar to Jetpack Joyride and Flappy Bird that will run on both iPhone and iPad.

In this chapter, we will look at the following:

  • How to create a Cocos2d game that will run on iPhone and iPad

  • How to enable touch detection

  • How to manage collisions

  • How to load images and sounds

  • How to play sound effects

  • How to create score labels and update them