28 March 2021

Progress review: Book Controller

 For this project, I am planning to control a text adventure game using a book. This concept is directly inspired by Choose Your Own Adventure books, and their relationship of co-inspiration with text adventure games. Hopefully, people who play the game using this controller will feel like they are reading a Choose Your Own Adventure book that happens to display a lot of it's text on a screen.

Operationally, the book has pieces of foil that are between pages. When a pair of pages are closed, power is able to flow between them, which reads as "high" signal to the Arduino pin connected at the end of it. When the page is opened, the foil pieces are pulled apart and the signal is broken, resulting in a "low" signal at the pin. This way, I can keep track of which page (or pages) the user has opened, and generate inputs into the game accordingly.




#include <Adafruit_CircuitPlayground.h> #include <Adafruit_Circuit_Playground.h> //Variables void setup() { // Instantiation // Prompt user to open page one of controller } void loop() { // check which page is open (if A1 && A2 are low, then...), run function } //Functions //named according to page, inputs keystrokes that becomes text prompt (open page 2, type: "Open door")

I have two question I actually quite sincerely want some feedback on:

1) The game. Originally, I planned to use Zork! as my text adventure game of choice, but looking it over, I feel it may not actually work very well for this project. Is there another text adventure game you suggest I could look at? Ideally, options that players can take should be a little more limited.

2) The controller. There are a couple of different ways I can map the pages of the book to control the game. I personally lean towards having each page represent a "scene" in the text adventure game, but alternatively I could have each page representing an action. If a player wants to "turn on the light" in the room, they turn to the "turn on light" page to perform that action. This option pays less homage to Choose Your Own Adventure books, but might be more practical. What are your thoughts?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.