if (this.estado == 1) { System.out.println(": Felicitaciones Ganaste el Juego!!"); System.out.println(": Desea pasar al siguiente mundo? s/n"); //aqui se podria cargar otro mundo y continuar linea = Entrada.readLine(); if (linea.equalsIgnoreCase("s")){ this.estado = 3; this.indiceLaberinto = 0; this.indiceMundo = this.indiceMundo + 1; this.mundoActual = episodio.getEpisodio().get(indiceMundo); this.labActual = (Laberinto) mundoActual.getMundos().get(this.indiceLaberinto); this.avatar = new Avatar(this.labActual.getPosIniX(), this.labActual.getPosIniY(), 'H', 20, 20, "Terminator"); this.labActual.seteaAvatar(this.labActual.getPosIniX(), this.labActual.getPosIniY(), avatar); System.out.println("Bienvenido al mundo " + this.indiceMundo); } else{ //si ingresan "n" System.out.println("Ud. eligio terminar el juego, completo satisfactoriamente el mundo " + this.indiceMundo); System.exit(0); } }