Spritesheets

This tutorial will show you how you can grab a specific region from a spritsheet and store it in a Texture2D.  It will also cover how you can use loops to automate grabbing all aligned sections of a spritesheet and storing them in a loop.

There is also a link to a tutorial that does this, but uses the regions to make an animation.

Spritesheets

This tutorial will show how you can use a spritesheet and animate with it by specifying mulitople regions:

http://rbwhitaker.wikidot.com/texture-atlases-1

The tutorial I made will cover how you can use Rectangles to load in specific regions of a spritesheet into individual Testure2Ds, and how it can be automated using loops if the spritesheet items are aligned.

Tutorial

Here is the solution for the tutorial:

https://github.com/AldworthClass/Loading-a-Spritesheet

Images for tutorial:

These can be found in the Files section at the bottom of this page.

Using Spritesheets.pdf

Files