ACTOR(3PYON)Pyon manual · the Pyon app (index.html)ACTOR(3PYON)

NAME

actor — make one of the two creatures on the stage

SYNOPSIS

actor(id, dir, pitch)

DESCRIPTION

Fills the element with the given id with that creature's drawing (LOOKS.mochi or LOOKS.onigiri, as drawn in GitHub ccn-voices) and returns the record every action works on: the element, its body, its speech bubble, the way it faces and the pitch of its voice. The app makes two: Mochi (facing right, pitch 1.15) and Onigiri (facing left, pitch 0.85).

PARAMETERS

id: "mochi" or "onigiri", the id of its element in the page. dir: 1 when it faces right, −1 when it faces left; runs and somersaults go that way. pitch: a factor for every sound it makes, so that the two voices differ.

RETURN VALUE

{ id, el, body, bubble, dir, pitch }.

SEE ALSO

movers(3pyon), say(3pyon), rest(3pyon), ACT(3pyon)

SOURCE

src/pyon.html, line 318

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0