RotateZoom.java :  » Game » foogamelib » kku » cs » fgl » transition » Java Open Source

Java Open Source » Game » foogamelib 
foogamelib » kku » cs » fgl » transition » RotateZoom.java
package kku.cs.fgl.transition;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class RotateZoom extends Zoom {

  public RotateZoom() {
    // TODO Auto-generated constructor stub
  }

  public RotateZoom(float tx, float ty, int mode) {
    super(tx, ty, mode);
    // TODO Auto-generated constructor stub
  }

  public RotateZoom(int duration, float tx, float ty, int mode) {
    super(duration, tx, ty, mode);
  }
    float a=0;
  public void update(StateBasedGame game, GameContainer container, int delta) throws SlickException {
    super.update(game, container, delta);
    if(scene1!=null){
      a+=0.5f*delta;
      scene1.setRotation(a);
    }
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.