My friend Laura sent me an email asking for suggestions with a Choose Your Own Adventure style of game she was working on in Python. My email answer got so long I realized I needed to flesh it out on the site. If you can’t tell by the title, I had a lofty vision. CYOA may be one of the simpler forms of interactive fiction, but it counts.
series → python-interactive-fiction
Apr 20, 2007 (Updated Jul 11, 2009)
This is the second part of an ongoing series about using Python to create interactive fiction. I hope to show you one fun use of Python while teaching you more about the basics of this language. We started by defining how our game was going to work and creating a set of scenes for play. Next we wrote the code to handle a single round of the game. Today we are going to tie all of our scenes together to make a complete, playable game of interactive fiction. We are going to approach it from an experimental view, playing with different approaches until we find one that makes us happy. Well, one that makes me happy.
Jun 14, 2007 (Updated Jul 11, 2009)
This is Part 3 of an ongoing series about writing interactive fiction games in Python. By the end of Part 2 we had created a text-based user interface and explored one way of storing multiple scenes. This part will finally bring the needed glue for the player to move between all of the scenes in the story. In other words, we’ll have a game!