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);
}
}
}
|