Book Image

Cocos2d-x by Example: Beginner's Guide

By : Roger Engelbert
Book Image

Cocos2d-x by Example: Beginner's Guide

By: Roger Engelbert

Overview of this book

Table of Contents (19 chapters)
Cocos2d-x by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. On the Line – Rocket Through

In our third game, Rocket Through, we'll use particle effects to spice things up a bit, and we'll use DrawNode to make our own OpenGL drawings on screen. And be advised, this game uses quite a bit of vector math, but luckily for us, Cocos2d-x comes bundled with a sweet pack of helper methods to deal with that as well.

You will learn:

  • How to load and set up a particle system

  • How to draw primitives (lines, circles, and more) with DrawNode

  • How to use vector math helper methods included in Cocos2d-x