Пример #1
0
 public formMain()
 {
     InitializeComponent();
     gameBoard = new Board();
     
     engine = new gfxSettings(panelBoard);
     gameBoard.initBoard(engine, panelBoard, labelScore);
     gameBoard.resetScore();
 }
Пример #2
0
        public void initBoard(gfxSettings mainGFX, Panel panelBoard, Label labelScore)
        {
            p = panelBoard;
            g = mainGFX;
            l = labelScore;

            tileWidth = p.Size.Width / 3;

            refill();
        }
Пример #3
0
        private void panelMain_Paint(object sender, PaintEventArgs e)
        {
            engine = new gfxSettings(panelBoard); 
            gameBoard.initBoard(engine, panelBoard, labelScore);

        }