Interface: ImageSpriteFactory

hcje/sprites~ImageSpriteFactory

Factory for creating sprites which are rendered using images from a texture image.

Source:

Methods

createSprite(logId, texture) → {module:hcje/sprites.Sprite}

Create a rendered sprite.

Parameters:
Name Type Description
logId string

ID used for debugging.

texture HTMLImageElement

Image used for the texture from which the individual sprite images are extracted.

Source:
Returns:
Type
module:hcje/sprites.Sprite