24 to 25 October · Building the phone app

Move detection and a Battle on the phone

Three tests checked whether the game could work as a phone app: finding Moves with the camera, walking around a room and fighting a Battle. At first, no Moves were detected, and then the test kept reporting jumps that hadn't happened.

The goal

Until now, everything ran in a web browser. Before building the real app, the riskiest parts had to work on a phone. The app needed to find your body in the camera picture and draw a walkable room smoothly. It also had to run a Battle while the camera was on.

What was tried

The camera test drew a stick figure over the player and wrote the latest Move in big letters. It could also record body points, so a play session could be checked again later. Two recordings from this test became automatic tests for Move detection.

The walking test used one puzzle room from the Tide Shrine, with a block to push onto a plate. A stress button added up to 1,000 extra moving pictures. The Battle test put the camera, Move detection and an animated monster on the phone together.

What went wrong

The first version found no Moves. The likely cause was a sideways camera picture, and detection worked once the picture was turned upright. Then standing up from a squat, punching or blocking could count as a jump. On the phone, straightening your knees moved the ankle points up by 1 to 4% of your height. The browser's limit for a jump was only 1.4%. Real jumps moved them 10 to 18%, so the limit became 4.5%.

The first Battle missed some floor touches and punches. A few of the browser Battle's timing rules had been left out, so they were added. Some punches may not have been detected at all, so the Battle began logging why a Move didn't count.

What happened next

The room stayed at 60 frames a second with 1,000 extra pictures, and walking was smooth. The battery test was put off. Claude then wrote a short design document and a plan with seven milestones.

The room test in the phone simulator. A system pop-up below this part dimmed the screen.
The room test in the phone simulator. A system pop-up below this part dimmed the screen.Made at the time, 24 October
The browser Battle that the phone version was based on. This is its 27 October version, with a test player and the camera off.
The browser Battle that the phone version was based on. This is its 27 October version, with a test player and the camera off.Recaptured from the version of 27 October
The same browser Battle. The Shell Crab is wide open, so any Move counts.
The same browser Battle. The Shell Crab is wide open, so any Move counts.Recaptured from the version of 27 October
Read the 9 prompts