Exemplo n.º 1
0
        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();
        }