Ejemplo n.º 1
0
        private void Tick(object sender, TickEventArgs e)
        {
            //Clear and draw the space for the grid...
            surf.Fill(grid.Rectangle, Color.Black);
            grid.Update();
            grid.Draw(surf);

            //Clear and draw the space for the score board...
            surf.Fill(board.Rectangle, Color.Black);
            board.Update();
            board.Draw(surf);

            //Blit the grid and the board to the screen surface...
            screen.Blit(surf, board.Rectangle);
            screen.Blit(surf, grid.Rectangle);
            screen.Update();
        }