SpriteLibrary Namespace |
Class | Description | |
---|---|---|
![]() | Sprite |
A Sprite is an animated image that has a size, position, rotation, and possible vector
It tracks where in the animation sequence it is, can report colisions, etc. This SpriteController
draws, moves, and deals with most graphical aspects of the sprites for you.
|
![]() ![]() | SpriteController |
A sprite controller is the main heart of the sprite class. Each SpriteController manages one picturebox.
If at all possible, try to keep each game in one picturebox, and try to avoid making and destroying
new forms with SpriteController/pictureboxes in them. It is hard to destroy them completely.
|
![]() | SpriteEventArgs |
An EventArgs that contains information about Sprites. Most of the Sprite events use
this SpriteEventArgs.
|
![]() ![]() | SpritePayload |
The SpritePayload is a stub of a class, for storing user-defined data and functions along with a sprite.
|
Structure | Description | |
---|---|---|
![]() | SpriteAdjustmentRatio |
A structure that contains the width and height adjustment ratio. Use this if you need to manually calculate positions
between the PictureBox that the sprite is in, and the Background Image itself.
|
Delegate | Description | |
---|---|---|
![]() | SpriteSpriteEventHandler |
A delegate that has a SpriteEventArgs instead of EventArgs. Used for most
of the Sprite events. This allows us to pass more information from sprite events than
a basic EventArgs allows for
|
![]() | SpriteKeyEventHandler |
This is a delegate for a keypress event.
|
Enumeration | Description | |
---|---|---|
![]() | SpriteCollisionMethod |
The various types of collisions a sprite can have. Currently only rectangle works. The other types were added when I
thought the different types of collision types were needed. Someday we may add these if we find they are useful, or if
someone else decides they want to help program the SpriteLibrary. These values are primarily used in Sprite Events
|
![]() | SpritePauseType |
The type of pause signals you can give a sprite or the sprite controller
|