Interactive Fiction: A Fun Program to Write and Play
Once again, I tasked myself with writing a new Java program this week. I made it to the part of my Java book about mathematical functions, Strings, and character data types. The chapter was brief, and the exercises were too centered around math. Go figure.
I didn’t like those options. Instead, I chose to come up with my own project. Interactive Fiction!
For the uninitiated, interactive fictions are stories/books/games where the audience (you) are given options that affect the direction of the plot. Remember those “choose your own adventure” books? Or Telltale games? Same thing.
In this story, players awaken and make decisions that affect their commute to work. Pretty straightforward, but the possibilities are endless! I’m taking a page out of the Mario book and making it simple enough to get into, but providing a certain level of depth to give players different ways to enjoy it.
Ingredients for my program: Selection statements to create pivot points in the plot, String and character variables for holding various crazy values, and good old user input. If I can get a CERTAIN PROGRAM running, this might make it’s way to mobile phones soon…
-CF