Not really debug anymore, just polishing stuff. You can open a serial terminal at 115200 baud on the USB programming jack to “talk” with the game. I’m beefing up what this can do, both for human-readable debugging, and using Bluetooth UART via a tablet or smartphone app.

Improved command parser for serial.

On serial terminal, added commands for servo control, SFX and music (see below)

Added one-shot switch status return, so tablet app can control rate at which it monitors switch data.

Got some feedback from the Allentown show which I’ve worked into the game!

When ball gets stuck, game goes into Ball Search (firing everything trying to loosen ball) There is a way to get the ball stuck behind the targets. Normally the game checks for this whenever the targets go up, but if a ball is resting on target edge (which can happen) the game doesn’t know this and thus check didn’t occur. Fixed.

Added 2 new flags doorTrap and targetTrap, so the game knows if a ball is purposely stuck in those places during a mode. If a ball is there, game won’t move those spots during a ball search.

Enabled ball search when ball is trapped on purpose. Before this would prevent a ball search (since switch constantly triggered) but now a ball search can happen alongside it.

Made “halfway” point for targets so they can jostle about and still keep a ball trapped behind.