public Block(TetrisScreen _screen) { Screen = _screen; Datalnit(); SettingBlock(BLOCKTYPE.BT_T, BLOCKDIR.BD_R); }
public Block(TetrisScreen _screen) { screen = _screen; for (int y = 0; y < 4; ++y) { BlockData.Add(new List <string>()); } }
//▣□□□ //▣□□□ //▣□□□ //▣□□□ public Block(TetrisScreen _screen) { tetris_t _tt = new tetris_t(); tt = _tt; Screen = _screen; BlockTypeCount = 7; }
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(); } }
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(); } }
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(); } }
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"); }