Book Image

Cocos2d-x Cookbook

By : Akihiro Matsuura
Book Image

Cocos2d-x Cookbook

By: Akihiro Matsuura

Overview of this book

Table of Contents (18 chapters)
Cocos2d-x Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Creating Sprites

In this chapter we're going to create sprites, animations, and actions. The following topics will be covered in this chapter:

  • Creating sprites

  • Getting the sprite's position and size

  • Manipulating sprites

  • Creating animations

  • Creating actions

  • Controlling actions

  • Calling functions with actions

  • Easing actions

  • Using a texture atlas

  • Using a batch node

  • Using 3D models

  • Detecting collisions

  • Drawing a shape