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

2-star challenge – enemies' life bar


Now that we know how to create and update a life bar for the zombie, try to create a life bar for each human on the top of its sprite. This way, the zombie will know how many hits need to launch to kill its enemies!

In this case, I'm not including the solution for this challenge because I want to know whether you're capable of solving it on your own. Come on!