DEMO mode

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

I thought it needed a demo mode, so I added one. It was a hard slog, actually - everything was way too complex and things kept breaking. Just not thinking as clearly as I'd like. Anyway, it's mostly there now. I modified the random level selection tool to solve and output the most difficult level, whatever that might be, and that level is used for the demo. The video shows the demo being played (automatically) twice-through. It's pretty daunting thinking about (being a human) solving that level myself.

The nice thing about the tool is that I just "run" it, and it randomly selects a smoothly graduated subset (say, 100) of the 2.5 million levels, solves them all, creates data tables for demo mode and each level, and outputs to source code. Then I hit build on the main code, and it's all there and functional, nothing more to do.  Back in the days of BD, I had to manually enter every move of the demo mode, which took ages. In this game it's totally automatic (including solving!). Nice.


Andrew Davie

Just because I could, I installed solutions for ALL 100 levels, and let the demo mode choose randomly which level to "play". It used all of my remaining ROM, so I'm not sure if I'll keep it. The video shows the demo mode just randomly playing a few levels.