O'Reilly logo

Building Android Games with Cocos2d-x by Raydelto Hernandez

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

In this chapter, we allowed the user to control our game by using two different input mechanisms, that is, touching the screen and moving the phone around in order to use the accelerometer sensor; we have also made our game stop whenever the back button is pressed.

In the next chapter, we will cover the different ways of adding text to our games.

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