package net.ld.invalid.main;
import net.ld.invalid.res.resImages;
import org.newdawn.slick.Animation;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;
public class Game extends BasicGameState {
Image i;
@Override
public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
i = new Image("/res/Ghost.png", Color.white);
}
@Override
public void render(GameContainer gc, StateBasedGame sbg, Graphics g)throws SlickException {
i.draw(100, 100, 300);
}
@Override
public void update(GameContainer gc, StateBasedGame sbg, int Int) throws SlickException {
}
@Override
public int getID() {
return 0;
}
}
And it is not working i dont know why?
pls help!