Пример #1
0
        public void addSegment()
        {
            string nameKey = "body" + _segmentCount;

            //var blankSegment = createSegment(_EmptyTexture, new Vector2(-5, -5), Color.Transparent);
            //segmentsDictionary.Add(nameKey, blankSegment);
            //_segmentCount++;

            nameKey = "body" + _segmentCount;
            segment = createSegment(_Texture, new Vector2(-5, -5), Color.White);
            segmentsDictionary.Add(nameKey, segment);
            _segmentCount++;
        }
Пример #2
0
 void swapPosition(SnakeSegment current, SnakeSegment previous)
 {
 }