module Rubygame::Sprites

The Sprites module provides classes and mix-in modules for managing sprites. A Sprite is, fundamentally, a Surface with an associated Rect which defines the position of that Surface on the Screen. Additionally, sprites can have some behavior associated with them via the Rubygame::Sprites::Sprite#update method, including movement and collision detection; because of this, sprites can be the foundation of most on-screen objects, such as characters, items, missiles, and even user-interface elements.

There are several classes/modules under the Sprites module:

Sprite

mix-in module to turn an individual object or class into a Sprite.

Group

class for containing and manipulating many Sprite objects.

UpdateGroup

mix-in module for Group to allow undrawing/redrawing of member Sprite objects.

LimitGroup

mix-in module for Group to limit the number of Sprite objects the Group can hold at once.

More mix-in modules to extend the functionality of Group or Sprite are planned for the future. Do not hesitate to change either (or both) Group or Sprite within your application to fit your needs! That's what they are here for!