Exemple #1
0
    public static void Run()
    {
        bool fullScreen = false;

        SdlHardware.Init(1024, 768, 24, fullScreen);
        Bienvenida b = new Bienvenida();

        b.Run();
        Instrucciones i = new Instrucciones();

        i.Run();
        MenuPartidas m = new MenuPartidas();

        m.Run();
    }
    private void BorrarPartidaSeleccionada()
    {
        File.Delete("partidas/" + nombrePartida + ".txt");
        File.Delete("partidas/" + nombrePartida + ".txt_caja.txt");
        File.Delete("partidas/" + nombrePartida + ".txt_mochila.txt");
        List <string> leerPartidas = new List <string>(File.ReadAllLines("partidas/listaPartidas.txt"));

        leerPartidas.Remove(nombrePartida);
        File.WriteAllLines("partidas/listaPartidas.txt", leerPartidas);
        SdlHardware.Pause(100);
        BorradoConExito();
        MenuPartidas m = new MenuPartidas();

        m.Run();
    }