New Cocos2D 3.x APIs?

I upgrade my application, like the others, to Cocos2D 3.0 when we talk. I have problems, although some methods are in the application.

1: I also use the accelerometer as follows:

self.AccelerometerEnabled = YES; 

however this has also been modified, what is the replacement method for invoking the accelerometer?

2: Finally, I used the Cocos2D 2.x actionManager as follows:

[[[CCDirector sharedDirector] actionManager] resumeTargets:self.pauseTargets];

What is the new replacement method for calling resumeTargets?

Believe me, I looked through the documentation for version 3.0 and did not find a new replacement API for them.

+4
source share
1 answer

1: As a simple answer, the accelerometer was removed together as it is deprecated since iOS 5

2: , actionManager :

#import "CCDirector_Private.h"
#import "CCActionManager.h"
0

Source: https://habr.com/ru/post/1526102/


All Articles