Actors
The two base classes, the actors that ship with MotionActor, and the decorator that labels a command for editors.
An actor is a class with signals for state and generator methods for commands. A scene spawns actors and calls their commands. A renderer draws each one from its resolved state.
Base classes
Actor
State, commands, events and the lifecycle hooks.
LayoutActor
An actor with a box, a transform, opacity and compositing.
Extend LayoutActor for anything drawn. Extend Actor for something with no box, such as a
clock or a sound manager.
Built in
Camera2D
Pan, zoom, framing, follow and shake.
ClockActor
Elapsed time, computed from the frame.
ComponentActor
A React function as the whole actor.
Group
A box with one slot, for compositing a set of siblings as one.
Audio and sound effects
Clips, cue packs and sounds bound to events.
Camera2D, ClockActor, ComponentActor and Group come from @motionactor/primitives, and the
audio actors from @motionactor/media.