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