The strangest thing is happening, and I canβt understand it. I am doing a StateBasedGame, and in one of the BasicGameStates I am trying to draw an image. However, he looks white. The code:
@Override
public void render(GameContainer arg0, StateBasedGame arg1,
Graphics g) throws SlickException {
g.setBackground(Color.blue);
Image image = new Image("res/Sniper Scope (Border).png");
g.drawImage(image, 230,100);
}
It seems that you find the image (it does not fall), but all that arises is:

Any help would be greatly appreciated.
source
share