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