示例#1
0
        private void Initiliaze()
        {
            GameIsPlaying = true;
            Paused        = false;
            AppleEaten    = false;

            TailCoordsList = new List <Coord>();

            PlayField = new PlayField(TailCoordsList);

            Tick     = new Stopwatch();
            Renderer = new SnakeRenderer();

            Player    = new Snake(TailCoordsList);
            Direction = new Direction();

            Tick.Start();
            UpdatePlayField();
        }
示例#2
0
        private void Initiliaze()
        {
            GameIsPlaying = true;
            Paused = false;
            AppleEaten = false;

            TailCoordsList = new List<Coord>();

            PlayField = new PlayField(TailCoordsList);

            Tick  = new Stopwatch();
            Renderer = new SnakeRenderer();

            Player = new Snake(TailCoordsList);
            Direction = new Direction();

            Tick.Start();
            UpdatePlayField();
        }