static void Main()
    {
        Sprite s = new Sprite();

        s.Mover();
        Pac p = new Pac(8, 10);

        p.Mostrar();
        p.Mover();
        Fantasma f1 = new Fantasma(15, 12);

        f1.Mostrar();
        f1.Mover();
        Fantasma f2 = new Fantasma(17, 14);

        f2.Mostrar();
        f2.Mover();
        Fantasma f3 = new Fantasma(19, 16);

        f3.Mostrar();
        f3.Mover();
        Fantasma f4 = new Fantasma(21, 18);

        f4.Mostrar();
        f4.Mover();
    }
예제 #2
0
    static void Main()
    {
        Pac p = new Pac(8, 10);

        p.Mostrar();
        Fantasma f1 = new Fantasma(15, 10);

        f1.Mostrar();
        Fantasma f2 = new Fantasma(17, 10);

        f2.Mostrar();
        Fantasma f3 = new Fantasma(19, 10);

        f3.Mostrar();
        Fantasma f4 = new Fantasma(21, 10);

        f4.Mostrar();
    }