Example #1
0
        private Sprite[] GetSpriteSegments(string filename, int numSprites)
        {
            List<Sprite> newSprites = new List<Sprite>();
            Sprite newSprite = null;

            for(int i = 0; i < numSprites; ++i)
            {
                newSprite = new Sprite(filename);
                newSprite.SetVisible(false);
            }

            return newSprites.ToArray();
        }