Example #1
0
        private void StartGame()
        {
            gameover  = false;
            score     = 0;
            direction = 0;
            snake.Clear();
            SnakePart head = new SnakePart();

            head.X = 10;
            head.Y = 5;
            snake.Add(head);
            GenerateFood();
        }