Bad Beer’s Inform 7 source code is in IFArchive and linked from the IFDB game page:
The source code is presented in its original untidied form. Rather devoid of comments Using chapters to break up the game. And within each chapter broken down further into locations, NPCs and scenes. There’s also an “Extra coding” section at the end, implementing a few extra things.
The code is pretty standard stuff. The only points of possibly particular interest are:
- The use of compact tables for handling topic based conversation ASK X ABOUT Y stuff (see under Part 2 “Extra Coding” for numerous NPC conversation tables)
- In the Extra Coding section a short bit of code (adopted from elsewhere) to report nicely if you try going in an invalid direction, and tell you available exits.
- In Section 3 of the code there’s a “RESUME THE STORY” instruction, allowing the player who reaches an unsuccessful ending to type PAST at the end of game prompt, and jump back into mid game for another try. This required restarting the game process after the final ending. It was a little bit tricky to get it working.
Thanks again folks - and especially @DeusIrae for starting this in 2023 - for this event again! Fab initiative