Interface for objects that can render a Sprite. Note the sprites cannot render themselves; they rely on a SpriteRenderer.
- Source:
Methods
kill()
Function that is called by the sprite to indicate that the sprite is being killed and all resources should be released.
- Source:
render(sprite)
Render the sprite.
Parameters:
| Name | Type | Description |
|---|---|---|
sprite |
module:hcje/sprites.Sprite | The sprite to render. |
- Source: