Blog Archives

Using accelerometer in cocos2d-x v3.2

Here is another one of the significant changes in version 3.2 if you are looking forward to use accelerometer in the future. In the init() method of your game Layer add the following code: Device::setAccelerometerEnabled(true); auto listener = EventListenerAcceleration::create(CC_CALLBACK_2(GameLayer::onAcceleration, this));
Posted in Tutorials Tagged with: ,

GB2ShapeCache-x for cocos2d-x V 3.2

I have managed to convert GB2ShapeCache-x to version 3.2 of cocos2d-x. Please feel free to make changes to the file and let me know if I have missed anything. Since CCDictionary, CCArray and CCString have been deprecated, most of the
Posted in Tutorials Tagged with: , , ,

Join 1 other subscriber