Book Image

Cocos2d-X Game Development Blueprints

By : Karan Sequeira
Book Image

Cocos2d-X Game Development Blueprints

By: Karan Sequeira

Overview of this book

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

An introduction to Angry Fish


I'm sure, just by reading that title, you know what to expect from this chapter and game. The player will have to use a catapult to hurl a series of extremely offended (haven't yet worked out why they're offended) fish towards an intricately constructed scaffolding, thereby bringing it down and destroying the cats that are housed within.

We shall go about this chapter in the following way:

  • Creating a scene with some bodies and fixtures with RUBE

  • Running the scene within RUBE

  • Creating the game's bodies with RUBE

  • Adding custom properties to a scene with RUBE

  • Exporting the scene and generating a level in Cocos2d-x using b2dJson

  • Defining the Fish class and its various subclasses

  • Defining the Cat class and finishing up the game

This is what we will achieve by the end of this chapter: