Skip to content
MotionActor
Esc
↑↓navigate↵open⌘Jpreview
On this page

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

Extend LayoutActor for anything drawn. Extend Actor for something with no box, such as a clock or a sound manager.

Built in

Camera2D, ClockActor, ComponentActor and Group come from @motionactor/primitives, and the audio actors from @motionactor/media.

Authoring

Was this page helpful?