Esempio n. 1
0
 public formMain()
 {
     InitializeComponent();
     gameBoard = new Board();
     
     engine = new gfxSettings(panelBoard);
     gameBoard.initBoard(engine, panelBoard, labelScore);
     gameBoard.resetScore();
 }
Esempio n. 2
0
        public void initBoard(gfxSettings mainGFX, Panel panelBoard, Label labelScore)
        {
            p = panelBoard;
            g = mainGFX;
            l = labelScore;

            tileWidth = p.Size.Width / 3;

            refill();
        }
Esempio n. 3
0
        private void panelMain_Paint(object sender, PaintEventArgs e)
        {
            engine = new gfxSettings(panelBoard); 
            gameBoard.initBoard(engine, panelBoard, labelScore);

        }