Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Cocos2d Game Development Blueprints

You're reading from   Cocos2d Game Development Blueprints Design, develop, and create your own successful iOS games using the Cocos2d game engine

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781783987887
Length 440 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jorge Jordán Jorge Jordán
Author Profile Icon Jorge Jordán
Jorge Jordán
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Cocos2d Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Sprites, Sounds, and Collisions FREE CHAPTER 2. Explosions and UFOs 3. Your First Online Game 4. Beat All Your Enemies Up 5. Scenes at the Highest Level 6. Physics Behavior 7. Jump and Run 8. Defend the Tower Index

Summary


In this chapter, you learned how to develop a classic beat 'em up game that will only run on iPad devices.

To control the movements of the main character, I have shown you how to create a virtual game pad as a subclass of CCNode to take advantage of its update method. In this class, you also declared a protocol to be implemented by some delegate to define its behavior.

You learned how to reduce the number of sprite drawings with the use of batch nodes and how to create, edit, and load these batch nodes into Cocos2d texture atlases to minimize the memory used to manage images.

Once you knew how to work with a large number of images, you used some of them to animate sprites and virtualize movement.

As our main character will move along the stage, I showed you how to develop a method to move the camera to always keep the zombie in view.

You learned how to add artificial intelligence to the enemies and draw a life bar so you know how much life the main character has.

Using knowledge from previous...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images