示例#1
0
 /// <summary>
 /// Break up the orginal sprite sheet into rows
 /// </summary>
 private void CreateSheets()
 {
     for (int row = 0; row < animationCount; row++)
     {
         Texture2D Image = SpriteSheet.CreateTexture(
             graphicsDevice, new Rectangle(0, row * frameHeight,
                                           sheetWidth, frameHeight));
         SpriteSheets[row] = Image;
     }
 }