// crea los objetos de textura y audio private void crearObjetos() { AssetManager assetManager = principal.getAssetManager(); // Referencia al assetManager // Textura de fondos y botones texturaFondo = assetManager.get("seleccionNivel/recursosPerdiste/gameOver.png"); texturaBtnMenu = assetManager.get("seleccionNivel/recursosPausa/menu.png"); texturaBtnContinue = assetManager.get("seleccionNivel/recursosPerdiste/continue.png"); // Crear fondo fondo = new Fondo(texturaFondo); fondo.getSprite().setCenter(Principal.ANCHO_MUNDO / 2, Principal.ALTO_MUNDO / 2); fondo.getSprite().setOrigin(1500 / 2, 1500 / 2); // botones btnContinue = new Boton(texturaBtnContinue); btnContinue.setPosicion(Principal.ANCHO_MUNDO / 2 - 160, Principal.ALTO_MUNDO / 2 - 200); btnMenu = new Boton(texturaBtnMenu); btnMenu.setPosicion(Principal.ANCHO_MUNDO / 2 - 160, Principal.ALTO_MUNDO / 2 - 350); efectoClick = assetManager.get("sonidoVentana.wav"); efectoMuerteNinja = assetManager.get("seleccionNivel/recursosPerdiste/muerteNinja.wav"); // Batch batch = new SpriteBatch(); }