This chapter will cover how to set up accelerometer support within a Cocos2d-x project using the built-in functions. This chapter can be thought of as a general purpose reference guide with no additional dependencies.
The contents of this chapter will not be used for the game that is being developed through the course of this book, but it is still important to have an understanding of accelerometer support using Cocos2d-x, enabling you to implement it in future projects.
The topics covered in this chapter are as follows:
Many existing games make use of accelerometer support to enhance the gaming experience. Accelerometers allow ...