FACTORIES

Methods

(static) ActorWithSpritesheet($parameters) → {Class.<Actor>}

Description:
  • Prepares an actor with spritesheet.
Source:
Parameters:
Name Type Attributes Description
$parameters Object The given parameters.
$parameters.$aseprite Aseprite.<T> The Aseprite module manager.
$parameters.$loop boolean <optional>
The loop status.
$parameters.$tag T The given tag.
Returns:
Type
Class.<Actor>

(static) ActorWithText($parameters) → {Class.<Actor>}

Description:
  • Prepares an actor with text.
Source:
Parameters:
Name Type Attributes Description
$parameters Object The given parameters.
$parameters.$align 'center' | 'left' | 'right' <optional>
The horizontal alignment.
$parameters.$anchor 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'left' | 'right' | 'top' | 'top-left' | 'top-right' <optional>
The anchor position.
$parameters.$font Aseprite.<string> The Aseprite module manager of the font (with the Aseprite tags corresponding to the characters used in the text).
$parameters.$heightLines number <optional>
The height of the lines.
$parameters.$spacingCharacters number <optional>
The spacing between the characters.
$parameters.$text string The text to use (with '\n' being a special character controlling the carriage return).
Returns:
Type
Class.<Actor>

(static) PreloadableAseprite($aseprite) → {Class.<Preloadable>}

Description:
  • Prepares a preloadable Aseprite module.
Source:
Parameters:
Name Type Description
$aseprite Aseprite.<string> The preloadable Aseprite module.
Returns:
Type
Class.<Preloadable>