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 a = 4; } Console.Clear(); NewSC.Render(); NewSC.Clear(); NewBlock.Move(); } }
static void Main(string[] args) { TETRISSCREEN NewSC = new TETRISSCREEN(5, 5); NewSC.Render(); Console.ReadKey(); //int Arr[][] = new [15][10]; //Arr[] //string Str = ""; //for (int i = 0; i < 10; i++) //{ // if (true) // { // Str += "*"; // } //} //for (int y = 0; y < 15; ++y) //{ // for (int i = 0; i < 10; ++i) // { // if (y == 0 || y == 14) // { // Console.Write("*"); // } // else // { // Console.Write("."); // } // } // Console.WriteLine(""); //} //Console.CursorLeft = 6; //Console.CursorTop = 6; //Console.WriteLine("O"); //Console.CursorLeft = 6; //Console.CursorTop = 7; //Console.WriteLine("O"); //Console.CursorLeft = 6; //Console.CursorTop = 8; //Console.WriteLine("O"); //Console.CursorLeft = 6; //Console.CursorTop = 9; //Console.WriteLine("O"); //while (true) //{ // Console.ReadKey(); //} }
public Block(TETRISSCREEN _Screen) { Screen = _Screen; }