Sprites

Sprites are 2D images that represent an object or background. Sprites are represented by two main chunks of data:

  • Texture: The image made of pixels.
  • Sprite Layout: The (rectangular) coordinates of the sprites on that image.

In Amethyst, these are represented by the Texture and SpriteSheet types respectively. The pages in this section will explain how to set up your application to load and display sprites.

Note: The code snippets in this section explain the parts of setting up sprite rendering separately. For complete application examples, please refer to the sprites or sprites_ordered examples in the examples directory.