Exemplo n.º 1
0
        private void StartNewGame() {
            _board = new Field[Settings.BoardX, Settings.BoardY];
            _gameState = GameState.Prepared;
           
            _snake = new Snake(ref _rectBoard, ref _board);
            _fruit = new Fruit(ref _rectBoard, ref _board);

            _snake.AppleEaten += (sender, e) => _fruit.ChangePosition();  
        }