O'Reilly logo

Cocos2d-x Game Development Essentials by Gareth Jones, Arutosh Gurung, Frahaan Hussain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter covered how Cocos2d-x handles physics using its own physics implementation built on top of the Chipmunk physics engine. Then, the scene was modified to run using physics. Once the physics world was set up, we implemented physics listeners and bodies to detect collisions between the player's space pod and the asteroids. The next chapter will cover how to add audio to the game when certain conditions are triggered, for example, when the player dies by colliding with an asteroid.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required