예제 #1
0
  private void render() {
    long timeStamp = environment.getTimer().getTime();

    if (timeStamp - lastRender >= environment.getConfig().getInteger("FrameRate")) {
      lastRender = timeStamp;

      environment.getEngine().clearDisplay();
      layerManager.drawLayers(environment.getEngine());
      environment.getEngine().updateDisplay();
    }
  }
예제 #2
0
 private void setBackground() {
   layerManager.addSimpleLayer(new Background(environment, backgroundTexture));
 }