示例#1
0
文件: Game.java 项目: winki/SpaceWars
  /** 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();
  }
示例#2
0
文件: Game.java 项目: winki/SpaceWars
 /** Loads all content that has to be available before the game loop. */
 protected void load() {
   Screen.getInstance().register(this);
 }
示例#3
0
 public MainPanel() {
   add(Screen.getInstance());
 }