예제 #1
0
    public Block(TetrisScreen _screen)
    {
        Screen = _screen;
        Datalnit();

        SettingBlock(BLOCKTYPE.BT_T, BLOCKDIR.BD_R);
    }
예제 #2
0
 public Block(TetrisScreen _screen)
 {
     screen = _screen;
     for (int y = 0; y < 4; ++y)
     {
         BlockData.Add(new List <string>());
     }
 }
예제 #3
0
    //▣□□□
    //▣□□□
    //▣□□□
    //▣□□□
    public Block(TetrisScreen _screen)
    {
        tetris_t _tt = new tetris_t();

        tt             = _tt;
        Screen         = _screen;
        BlockTypeCount = 7;
    }
예제 #4
0
        static void Main(string[] args)
        {
            TetrisScreen NewSC = new TetrisScreen(10, 15);

            Block NewBlock = new Block(NewSC);

            while (true)
            {
                Console.Clear();
                NewSC.Render();
                NewSC.Clear();
                NewBlock.Move();
            }
        }
예제 #5
0
        static void Main(string[] args)
        {
            TetrisScreen NewSC = new TetrisScreen(10, 20);
            //TetrisScreen DrawSC = NewSC;
            Block NewBlock = new Block(NewSC);

            NewBlock.TetrisReset();
            while (true)
            {
                Thread.Sleep(5);
                NewSC.DrawScreen();
                NewSC.CheckBingo();
                NewSC.Init();
                NewBlock.Move();
            }
        }
예제 #6
0
        static void Main(string[] args)
        {
            TetrisScreen NewSC = new TetrisScreen(10, 15);

            Block newBlock = new Block(NewSC);

            while (true)
            {
                for (int i = 0; i < 20000000; i++)
                {
                    int k = 0;
                }
                Console.Clear();
                NewSC.Render();
                NewSC.Clear();
                newBlock.Move();
            }
        }
예제 #7
0
        static void Main(string[] args)
        {
            TetrisScreen NewSC = new TetrisScreen(10, 15);

            Block NewBlock = new Block();

            //이걸 그리기 전에 !!
            NewSC.Render();

            Console.ReadKey();

            //while (true)
            //{
            //    Console.ReadKey();
            //}


            //for (int y = 0; y < 3; ++y)
            //{
            //    for (int x = 0; x < 3; ++x)
            //    {
            //        NewSC.SetBlock(y, x, Tblock.Wall);
            //    }
            //}
            //NewSC.SetBlock(3, 3, Tblock.Wall);

            //string Str = "";
            //for (int i = 0; i < 10; i++)
            //{
            //    if (true)
            //    {
            //        Str += "* ";
            //    }
            //}
            //Console.WriteLine(Str);

            //for (int y = 0; y < 15; ++y)
            //{
            //    for (int x = 0; x < 10; ++x)
            //    {
            //        if (y == 0 || y == 14)
            //        {
            //            Console.Write("-");
            //        }
            //        else
            //        {
            //            Console.Write("*");
            //        }
            //        Console.Write(" ");
            //    }
            //    Console.WriteLine("");
            //}
            //Console.CursorLeft = 6;
            //Console.CursorTop = 6;
            //Console.Write("O");
            //Console.CursorLeft = 6;
            //Console.CursorTop = 7;
            //Console.Write("O");
            //Console.CursorLeft = 6;
            //Console.CursorTop = 8;
            //Console.Write("O");
            //Console.CursorLeft = 6;
            //Console.CursorTop = 9;
            //Console.Write("O");
        }