ludic/packages/ludic.character/state.ludic

24 lines
551 B
Text

# state.ludic - the body, its camera, and the queue of what happened to it
const chr_pi: float = 3.14159265
# the camera: an orbit round a pivot at the chest, or the eyes
export function char_facts(character_st: CharacterState) -> Queue<CharacterFact> {
return character_st.chr_fact_q
}
function chr_say(character_st: CharacterState, what: int, v: float) -> void {
let f = new CharacterFact
f.what = what
f.x = character_st.chr_x
f.y = character_st.chr_y
f.z = character_st.chr_z
f.v = v
q_push(char_facts(character_st), f)
}