Difference between revisions of "Legacy:Functions/Spritesets"

From Spherical
Jump to: navigation, search
(created)
 
(Spritesets: expanded DV's edits)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
* Sphere [[API:Spriteset|Spriteset]] object: Holds appearance, direction and base data for a map person.
 
* Sphere [[API:Spriteset|Spriteset]] object: Holds appearance, direction and base data for a map person.
 +
 +
* [[API:Spriteset/images|Spriteset.images]][]: an array of all images in the spriteset.
 +
* Sphere [[API:Spriteset/base|Spriteset.base]]: contains a [[API:SpritesetBase|SpritesetBase]] object which holds coordinates of the spriteset's collision box/obstruction base relative to the Spriteset dimensions.
 +
* Sphere [[API:Spriteset/directions|Spriteset.directions]][]: an array of [[API:SpritesetDirection|SpritesetDirection]] objects, each of which containing a direction name and a sequence of [[API:SpritesetFrame|SpritesetFrame]] objects determining the order of images used and delays between animation.
 +
 
* [[API:LoadSpriteset|LoadSpriteset]](''filename''): Load a Sphere [[API:Spriteset|Spriteset]] from ''filename''.
 
* [[API:LoadSpriteset|LoadSpriteset]](''filename''): Load a Sphere [[API:Spriteset|Spriteset]] from ''filename''.
 
* [[API:CreateSpriteset|CreateSpriteset]](frame_width, frame_height, num_images, num_directions, num_frames): returns a blank [[API:Spriteset|spriteset]] object with the given dimensions
 
* [[API:CreateSpriteset|CreateSpriteset]](frame_width, frame_height, num_images, num_directions, num_frames): returns a blank [[API:Spriteset|spriteset]] object with the given dimensions
 
* [[API:Spriteset/save|Spriteset.save]](filename): saves the [[API:Spriteset|spriteset]] object to 'filename'
 
* [[API:Spriteset/save|Spriteset.save]](filename): saves the [[API:Spriteset|spriteset]] object to 'filename'
 
* [[API:Spriteset/clone|Spriteset.clone]](): returns a copy of the [[API:Spriteset|spriteset]] object
 
* [[API:Spriteset/clone|Spriteset.clone]](): returns a copy of the [[API:Spriteset|spriteset]] object
 
* Sphere [[API:SpritesetBase|SpritesetBase]] object: Determines a person's collision box.
 
* Sphere [[API:SpritesetDirection|SpritesetDirection]] object: Holds a direction name and animation sequence.
 
* Sphere [[API:SpritesetFrame|SpritesetFrame]] object: A frame (image index, delay) in a [[API:SpritesetDirection|SpritesetDirection]].
 

Latest revision as of 20:06, 12 August 2013

Spritesets

  • Sphere Spriteset object: Holds appearance, direction and base data for a map person.