The Penguin
class publicly inherits from CCSprite
and it is similar in terms of structure to the GameObject
class you saw in the previous chapter. It possesses a b2Body
object along with functions that update its position based on its body. The body of the penguin will have a circle-shaped fixture applied to it. We will skip all of that boilerplate code and discuss the behavior of the penguin.
Cocos2d-X Game Development Blueprints
By :
Cocos2d-X Game Development Blueprints
By:
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
Free Chapter
A Colorful Start
How to Fly a Dragon!
Not Just a Space Game
Back to the Drawing Board
Let's Get Physical!
Creativity with Textures
Old is Gold!
Box2D Meets RUBE
The Two Towers
Cross-platform Building
Index
Customer Reviews