Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I write this statment throws a SlickException. I got an error and this is the message: required Throwable found SlickException. This my code :

public void initStatesList(GameContainer gc) throws SlickException{
    this.getState(menu).init(gc, this);
     this.getState(menu).init(gc, this);
share|improve this question

The initStateList method is there for you to add states, not initialize them. Slick will initialize them for you and enter the first state you added automatically.

It should look like this:

public void initStatesList(GameContainer gc) throws SlickException {
    addState(new YourFirstState();
    addState(new YourSecondState();

Then slick will automatically initialize them and enter "YourFirstState"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.