Home | Trees | Index | Help |
---|
|
Graphical widgets that defines one or more animation modes, based on images loaded from files. Sprites are constructed based on sprite categories, which define the basic types of sprites that are available.
A sprite catalog is used to register and look up sprite categories. The sprite catalog is accessed via the functionsadd_sprite_category()
and get_sprite_category()
. New categories are
typically added to the sprite catalog using sprite category factory functions, such as add_walker_category
.
Classes | |
---|---|
AnimationSequence |
A sequence of animation frames that constitute an animation. |
Sprite |
A graphical widget that defines one or more animation modes, based on images loaded from files. |
SpriteCategory |
Shared information about a group of sprites that use the same set of animation sequences. |
Function Summary | |
---|---|
Search the sprite catalaog for the sprite category with the given name, and return that sprite category. | |
Sprite Category Factory Functions | |
Add a new sprite category to the sprite catalog, that defines two animations: | |
Add a new sprite category to the sprite catalog, that defines six animations: | |
Add a new sprite category to the sprite catalog, that defines a single still animation whose image is taken from imagespec . | |
Add a new sprite category to the sprite catalog, that defines four animations: | |
Add a new sprite category to the sprite catalog, that defines a single animation whose frames and durations are specified by imagespecs and durations . | |
Add a sprite category to the sprite catalog. |
Function Details |
---|
add_sprite_category(sprite_category)Add a sprite category to the sprite catalog. |
add_animated_category(name, layer, imagespecs, durations)Add a new sprite category to the sprite catalog, that defines a single animation whose frames and durations are specified byimagespecs and durations .
|
add_walker_category(name, layer, imagespecs, durations)Add a new sprite category to the sprite catalog, that defines four animations:
|
add_still_category(name, layer, imagespec)Add a new sprite category to the sprite catalog, that defines a single still animation whose image is taken fromimagespec .
|
add_sitter_category(name, layer, walkspecs, walktimes, sitspecs, sittimes)Add a new sprite category to the sprite catalog, that defines six animations:
|
add_flyer_category(name, layer, imagespecs, durations)Add a new sprite category to the sprite catalog, that defines two animations:
|
get_sprite_category(name)Search the sprite catalaog for the sprite category with the given name, and return that sprite category. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:44 2005 | http://epydoc.sf.net |