public void render(float delta) { Gdx.gl.glClearColor(0.9f, 0.9f, 0.9f, 1); Gdx.gl.glClear(Gdx.gl.GL_COLOR_BUFFER_BIT); float font = text.getBounds(message).width; batch.begin(); { text.draw(batch, message, (width / 2F) - (font / 2F), height - text.getCapHeight()); replay.render(batch); menu.render(batch); } batch.end(); }