예제 #1
0
파일: Form1.cs 프로젝트: agit15/tetris
        private void Form1_Load(object sender, System.EventArgs e)
        {
            _random    = new Random();
            tetrominos = Tetromino.ListAll();

            Grid = new Grid(GridBox, new PlayGround(GridBox.ColumnCount - 2, GridBox.RowCount - 2, GridBox));

            SetDoubleBuffered(GridBox);
            SetDoubleBuffered(NextGridBox);

            // Start game loop
            GameLoop.Start();
        }