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

Introduction to Pumpkin Defense


If you love tower defense games as much as I do, then you know the sheer multitude and variety of the games available out there. My personal favorites include Kingdom Rush, Fieldrunners, Plants vs. Zombies, TowerMadness, and many more. Pumpkin Defense is a much simpler version of these games, but it indeed possesses the level design to be scaled up to a much larger and more intricate tower defense game.

The story is the same as always, there are evil creatures trying to cross their limits and reach the good stuff. In this case, the creatures are trying to eat a helpless pumpkin. Our job as players is to build towers along the enemy's path to kill them before they leech off the pumpkin.

We will discuss the following topics in this chapter:

  • Define the XML architecture to describe the tower and enemy properties

  • Define the XML architecture to describe the various waves in a given level

  • Design a simple level describing the enemy's path in Tiled

  • Define the behavior of...