Esempio n. 1
0
  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();
  }
Esempio n. 2
0
 @Override
 public void update(CCAnimator theAnimator) {
   CCLog.info(
       theAnimator.frames() + " : " + theAnimator.frameRate() + " : " + theAnimator.deltaTime());
 }