Exemplo n.º 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();
    }
  }
Exemplo n.º 2
0
 private void setBackground() {
   layerManager.addSimpleLayer(new Background(environment, backgroundTexture));
 }