package slimpleslickgame;

import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.state.transition.FadeInTransition;
import org.newdawn.slick.state.transition.FadeOutTransition;

import client.Client;

public class SplashScreen extends BasicGameState {

	public static final int ID = 0;
	private int time;
	@Override
	public void init(GameContainer container, StateBasedGame game) throws SlickException {
		time = 0;				
	}

	@Override
	public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
		int th = g.getFont().getLineHeight()/2;
		int tw = 50;
		
		g.drawString("SPLASHSCREEN", (Client.WIDTH/2)-tw, (Client.HEIGHT/2)-th);
	}

	@Override
	public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException {
		time += delta;
		if(time > 3000){
			game.enterState(MainMenu.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
		}
	}

	@Override
	public int getID() {
		return ID;
	}

}

@@ -492,16 +492,55 @@
 ID = 0;%0A
+%09private static final int DELAY = 500;%0A
 %09private
@@ -1066,12 +1066,13 @@
 e %3E 
-3000
+DELAY
 )%7B%0A%09

change splashscreen time