/** Processes all that has to be repeated in the game loop. */ protected void process() { // get user inputs Keyboard.captureState(); Mouse.captureState(); // update game state update(gameTime); // render graphics Screen.getInstance().render(); }
/** Loads all content that has to be available before the game loop. */ protected void load() { Screen.getInstance().register(this); }
public MainPanel() { add(Screen.getInstance()); }