示例#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();
        }