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