public void update(StateBasedGame game, GameContainer container, int delta)
			throws SlickException {
		if (!init) {
			init = true;
			xp2 = (container.getWidth()/2)+50;
			yp2 = (container.getHeight()/4);
		}
		
		if (!moveBackDone) {
			if (scale1 > 0.4f) {
				scale1 -= delta * 0.002f;
				if (scale1 <= 0.4f) {
					scale1 = 0.4f;
				}
				xp1 += delta * 0.3f;
				if (xp1 > 50) {
					xp1 = 50;
				}
				yp1 += delta * 0.5f;
				if (yp1 > (container.getHeight()/4)) {
					yp1 = (container.getHeight()/4);
				}
			} else {
				moveBackDone = true;
			}
		} else {
			pause -= delta;
			if (pause > 0) {
				return;
			}
			if (scale2 < 1) {
				scale2 += delta * 0.002f;
				if (scale2 >= 1) {
					scale2 = 1f;
				}
				xp2 -= delta * 1.5f;
				if (xp2 < 0) {
					xp2 = 0;
				}
				yp2 -= delta * 0.5f;
				if (yp2 < 0) {
					yp2 = 0;
				}
			} else {
				finish = true;
			}
		}
	}
public void update ( StateBasedGame game , GameContainer container , int delta ) throws SlickException { if ( ! init ) { init = true ; xp2 = ( container . getWidth ( ) / 2 ) + 50 ; yp2 = ( container . getHeight ( ) / 4 ) ; } if ( ! moveBackDone ) { if ( scale1 > 0.4f ) { scale1 -= delta * 0.002f ; if ( scale1 <= 0.4f ) { scale1 = 0.4f ; } xp1 += delta * 0.3f ; if ( xp1 > 50 ) { xp1 = 50 ; } yp1 += delta * 0.5f ; if ( yp1 > ( container . getHeight ( ) / 4 ) ) { yp1 = ( container . getHeight ( ) / 4 ) ; } } else { moveBackDone = true ; } } else { pause -= delta ; if ( pause > 0 ) { return ; } if ( scale2 < 1 ) { scale2 += delta * 0.002f ; if ( scale2 >= 1 ) { scale2 = 1f ; } xp2 -= delta * 1.5f ; if ( xp2 < 0 ) { xp2 = 0 ; } yp2 -= delta * 0.5f ; if ( yp2 < 0 ) { yp2 = 0 ; } } else { finish = true ; } } }
@see org.newdawn.slick.state.transition.Transition#update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)