Beispiel #1
0
        void ActionEat()
        {
            snake.Eat(newFood);

            Score        += newFood.GetValue();
            labScore.Text = Score.ToString();

            if (newFood is TimerFood)
            {
                GameTimer.Interval -= GameTimer.Interval / snake.Speed;
            }

            newFood = factoryFood.CreateNewFood(snake.GetSnakeBodyCount(), gameZone, true);
        }