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 the uniqueness of physical behaviors in video games and how to make the best use of the physics engine included in Cocos2d, that is, Chipmunk.

We configured the Chipmunk space thanks to the CCPhysicsNode class and its properties such as gravity. Then we added some bodies and convex shapes and saw the attributes we can modify on the CCPhysicsBody and CCPhysicsShape classes to get the desired result.

You also learned that we can provide physics behavior to objects beyond bodies and shapes by creating a sprite and linking a physics body to it. Then you learned to create concave shapes and configure their physics properties thanks to physics editors such as PhysicsEditor and how to load this shape in our Xcode project.

To define the interaction between objects in the same space, you saw how to detect and manage collisions with the different approaches Chipmunk offers. Thanks to the knowledge acquired in the chapter, we implemented a kind of snooker game in which...

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 $15.99/month. Cancel anytime
Visually different images