Skip to contents

Gestures play a quick movement once, without changing the mascot's mood. They are available only in update_mascot(). With no character, it lists the gestures every character shares, with their nominal lengths. With a character, it lists that character's gestures: "nod" and "wave" first, then its own in the order its author wrote them.

Usage

mascot_gestures(character = NULL)

Arguments

character

NULL (the default) for the shared gestures, or a character: an id string such as "tessa" or a mascot_character() helper.

Value

A data frame with character columns name (the value you pass to mascot_gesture()), description and fallback (the gesture declared as the next choice when this one cannot play, or NA), and an integer column frames. Without a character, frames is the nominal length (18 for "nod", 30 for "wave") and fallback is NA. For a character, frames is the length of the movement that actually plays: a "wave" that falls back to a rock reports the length of the rock. Frames run at 30 per second. A base data frame. Columns may be added at the end in later versions; existing columns keep their names and types.

Examples

mascot_gestures()
#>   name                                                       description
#> 1  nod                    A short nod, such as to acknowledge an action.
#> 2 wave A wave, such as a greeting; characters without arms rock instead.
#>   fallback frames
#> 1     <NA>     18
#> 2     <NA>     30
mascot_gestures("tessa")
#>      name                                                       description
#> 1     nod                    A short nod, such as to acknowledge an action.
#> 2    wave A wave, such as a greeting; characters without arms rock instead.
#> 3    rock                                                      Rock gently.
#> 4 shimmer                                 A glint runs once round the ring.
#>   fallback frames
#> 1     <NA>     18
#> 2     rock     30
#> 3     <NA>     18
#> 4     <NA>     45