Module sprite

Module sprite 

Source
Expand description

Provides sprites representation and loading helpers.

Structs§

Sprite
Sprite concept representation in struct. Represents the sprite (animated or not) of an [Entity]. If the sprite is colored, Ansi values (Vec of u8) must be used (See 256 colors - cheat sheet for more info.).

Functions§

load_sprite
Sprite loading helper to create the sprite 2D collection based on a JSON file. It can be static sprite or animated sprite.