public static void main(String[] args) { CCAppDemo myDemo = new CCAppDemo(); CCAnimator myAnimator = new CCAnimator(); myAnimator.framerate = 1; myAnimator.animationMode = CCAnimationMode.FRAMERATE_PRECISE; myAnimator.listener().add(myDemo); myAnimator.start(); }
@Override public void update(CCAnimator theAnimator) { CCLog.info( theAnimator.frames() + " : " + theAnimator.frameRate() + " : " + theAnimator.deltaTime()); }