Alright, so I have this game that I made a while back and now I want to put it on my website BUT the problem is I made it using AppGameContainer. I’m not quite sure how to change the AppGameContainer to an AppletGameContainer. Here’s what my main class looks like.
public class Main {
public static void main(String[] args) {
AppGameContainer game;
try {
game = new AppGameContainer(new Engine("Galactic Warrior"));
game.setIcon("resources/images/ico3.png");
game.setDisplayMode(640, 480, false);
game.setMaximumLogicUpdateInterval(60);
game.setTargetFrameRate(60);
game.setAlwaysRender(true);
game.setVSync(true);
game.setShowFPS(false);
game.start();
} catch (SlickException e) {
e.printStackTrace();
}
}
}
So how exactly would this be done? Hope you can help me, would strongly be appreciated! I’ve been stuck on this for a good while now,