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

3-star challenge – upgrading defenses


As you may have realized, the defense initializer method takes into account the level of the defenses in order to give them some skills and characteristics.

In this challenge, I want you to upgrade the levelOne defense to levelTwo when the player touches it. You don't need to worry about the resources as they are already added to the atlas.