rmp::Sprite
What an Object draws in place of its shape when it has one: a texture or a sheet, placed by origin around the object's position and turned, scaled and flipped with the object. A sheet also animates; play() picks the tag.
texture
A loose picture, when there is no animation
sheet
An .aseprite; sheet wins over texture
source
{0,0,0,0} = the whole texture, or the sheet's frame
origin
NORMALISED, and centred by default
size
{0,0} = the source's own size
tint
Multiplies the picture's colours; WHITE leaves them as they are
speed
2 = twice as fast, 0 = frozen, -1 = backwards
Animation, when there is a sheet
play, stop, finished, playing
player.sprite.sheet = rmp::assets::load_sheet("player.aseprite");
player.sprite.play("walk"); // "walk" is a tag of YOURSA literal, a std::string or a std::string_view, as it comes. playing() hands back the sheet's own name for the tag, or "" when nothing plays: valid for as long as the sheet is loaded, and the characters after it are a NUL, which tests/animation_test.cpp holds it to.
A tag that is not in the sheet WARNS ONCE and does nothing — it does not land on a blank frame, and it does not fill the console sixty times a second saying so.
frame_index, set_frame
The escape hatch: drive the frames yourself.
ours
What it is keeping track of. See the note on ours in rmp/behavior.h: public because a private member would stop this being an aggregate.