18 to 21 October · The first Battles

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.

Back to the update

18 October · Code change 79ba1d9

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]

19 October · Code change a7c634b

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

19 October · Code change 5954138

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

19 October · Code change 180cb59

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

19 October · Code change 5259651

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

19 October · Code change 117144e

Battle v2.6: stop forcing the iOS audio session to playback, which muted the voice once the camera started

19 October · Code change c86d8b4

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

19 October · Code change 930312d

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

19 October · Code change cf58939

Battle: the monster tips over while Down

19 October · Code change 5350411

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

19 October · Code change 9c1161e

Battle: fix a syntax error from v2.10 (a line comment cut off the rest timer) that stopped the script loading

20 October · Design note: Move detection prototype

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
20 October · Design note: Combat rules

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
20 October · Code change ec79713

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