Adding the Spark's voice and fixing Battles: code changes and notes
The chat transcripts for this part of the project expired before they could be saved. These are the descriptions saved with the code changes, and summaries of the design notes.
Battle v2.2: jumps judged against a rolling ground level and torso length; calibrate whenever the body is in view.[removed: a separate village task]
Battle v2.3: fixed rounds (Attack = 4 full Poses, Defence = 4 attacks, every 3rd Attack Round a Pushup Round), one countdown at a time; best available voice, voice errors logged; ?debug hook
Battle v2.4: plays pre-recorded voice clips (OpenAI TTS via prototypes/voice/gen.py) with the phone voice as fallback; voice keeps playing with the silent switch on
Battle v2.5: the Spark's lines as pre-recorded clips in OpenAI's ash voice (164 lines); the Rest line gets a relaxed delivery
Voice test page: Web Audio clip, audio element, phone voice and beep, before and after starting the camera, with iOS audio session options; taps logged
Battle v2.6: stop forcing the iOS audio session to playback, which muted the voice once the camera started
Battle v2.8: wake a suspended audio context on every tap and sound, fall back to an unlocked audio element for the voice; village music is muted (not suspended) during Battles
Battle v2.9: Move-first Pose calls, high knees against a downed monster, clips trimmed of silence, faster combat delivery; glossary and Combat rules amended
Battle: the monster tips over while Down
Battle v2.10: one 3-2-1 between Battles (the rest's own countdown starts the fight), a stomp hits as hard as a Punch, the monster stands up when the Attack Round ends, the rest line waits for the victory line
Battle: fix a syntax error from v2.10 (a line comment cut off the rest timer) that stopped the script loading
Replaced the side punch with a turned punch after a playtest. The player turns sideways and punches straight ahead.
turn side-on to the camera, then punch straight out the way you face
Changed the Pushup Round after a playtest, so players do as many as they can in 12 seconds after "Go!".
as many pushups as you can in 12 s
Battle v2.14: monster 40% larger, Block marker below it, the victory line finishes before the Chain moves on; backgrounds regenerated with a plain middle and detail at the edges