Example #1
0
 private void StartGame()
 {
     this.grid = new SnakeGrid(nRow, nCol, width, height, snakeSize);
     foodTimer = initFoodTimer;
     timerMain.Start();
     timerFood.Start();
     start = DateTime.Now;
     grid.GenerateFood();
 }
Example #2
0
 private void StartGame()
 {
     this.grid = new SnakeGrid(nRow, nCol, width, height, snakeSize);
     foodTimer = initFoodTimer;
     timerMain.Start();
     timerFood.Start();
     start = DateTime.Now;
     grid.GenerateFood();
 }