private void atualizarBotoes() { float x = camera.viewportWidth / 2 - btnIniciar.getPrefWidth() / 2; float y = camera.viewportHeight / 2 - btnIniciar.getPrefHeight() / 2; btnIniciar.setPosition(x, y); }