Andrew Hansen Help

Introduction

The text adventure is the classroom activity to teach the use of classes.

This version will run from the command line for simplicity in programming and to give the final product a 1980's feel. It could easily be written to a UI. This tutorial will use setters and getters in all classes even though Python does not require them. This is done to demonstrate how they work and in case this tutorial is ported to other languages.

Story

The premise for the game is that the player is a student who needs to change their grade on their teacher's computer before the reports get sent home.

The map

map.png

The game details

The player will start in the quad. There will be a $1 coin here which they take.

The player then goes to the canteen. Here they find a vending machine with choc chip cookies, chips and picnic bars.
If they have the coin they can make a purchase. It is important to the plot that they receive a picnic bar so if they buy anything else they will be told the machine malfunctions and gives them a picnic. They return to the quad.

The player then goes to the cleaner. Here they find Joe the cleaner. If they look at Joe they will receive a description. If they talk to Joe he will offer to lend his master key in exchange for a picnic. If the player gives the picnic then Joe will give the key. Joe will then leave the game so he cannot be interacted with again. The player then returns to the quad.

The payer then goes to Admin. The door is locked but if they use the key they will automatically enter the office. The office has a safe which will need to be opened and a picture of Kurt Kobain on the wall with RIP under it. The date of Kurt's death, 5-4-94, is the combination to the safe. Inside is a book. If the book is looked at the description tells that it is the teacher passcodes. If the book is opened it says that the passcode is "Trieste1960". From here the player returns to the quad.

Finally they player goes to the office. The office is locked but if they use the key they will automatically enter the office. The teacher's computer is the only thing on the desk. The login screen says "passcode:". If the player types "Trieste1960" they will see a message that says "Too late. I already phoned your parents."

Last modified: 07 April 2024