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 7. Jump and Run

The first video games were full of platforms and this genre continued to be one of the most popular until the emergence of smartphones. They were so popular that I'm sure all of you can enumerate a list of at least 10 popular platform games that will include some of the following: Sonic (yes, I was a Sega fanboy), Super Mario Bros, Mega Man, LittleBigPlanet, Ghosts 'n Goblins, Prince of Persia, Tomb Raider, Crash Bandicoot, Caveman Ninja, or Rayman.

With the current generation of cell phones, this genre has evolved to adapt itself to new interfaces by removing the classic directional pad and reacting to the different ways of touching the screen.

In this chapter, we are going to learn how to develop a platform game for iOS devices in which we will use custom physics and code specific collision logic. As we want the game to be unpredictable, we will develop a solution to design a varied scene by creating platforms randomly so the player can't memorize their appearance...