Esempio n. 1
0
        override public void Dibujar()
        {
            int TamañoChar = w * h;

            img = new char[TamañoChar];

            for (int t = 0; t < TamañoChar; t++)
            {
                img[t] = 'X';
            }
            Pantalla.CargarAMatriz(img, w, h, pos.x, (int)pos.y);
        }
Esempio n. 2
0
        override public void VistaPrevia(int x, int y)
        {
            pos.x = x;
            pos.y = y;

            int TamañoChar = w * h;

            img = new char[TamañoChar];

            for (int t = 0; t < TamañoChar; t++)
            {
                img[t] = 'X';
            }
            Pantalla.CargarAMatriz(img, w, h, pos.x, (int)pos.y);
        }
Esempio n. 3
0
        static public void Visualizar()
        {
            Pantalla.CargarAMatriz(Puntero, 1, 1, 17, y);

            Pantalla.CargarAMatriz(Jugar, 5, 1, 10, 5);

            Pantalla.CargarAMatriz(Cargar, 6, 1, 10, 8);

            Pantalla.CargarAMatriz(Editor1, 6, 1, 10, 11);

            Pantalla.CargarAMatriz(Modo, 4, 1, 25, 5);

            Console.SetCursorPosition(30, 5);
            Console.WriteLine(modo);

            Pantalla.Dibujar();
        }
Esempio n. 4
0
        public static void Mapas()
        {
            lectura = File.OpenText("NombresMapas.txt");

            string MapasNombre = lectura.ReadLine();

            while (MapasNombre != null)
            {
                Pantalla.CargarAMatriz(MapasNombre, 50, yNombres);
                MapasNombre = lectura.ReadLine();
                yNombres    = yNombres + 3;
            }

            lectura.Close();

            Pantalla.Dibujar();

            Console.WriteLine("Ingrese el nombre del mapa elegido: ");
            NomMapa = Console.ReadLine();

            LeerMapa(NomMapa);
        }