by Liz Lorena

Haunted Mansion Text Adventure Game

Published 2 December 2017 in Java Game


This is my second game made in Java, and it is a text-adventure.

View Source Code

This wasn't the first game I made with Java, but it was definitely the better one I made and something that I had actually wanted to make for a while. The first complete Java game I made was my computer science final project my freshman year of college, and it was basically just Black Jack but without a GUI. You can check out that train wreck here, but be warned: the code is atrocious because it's an enormous loop around many smaller loops.

Anyway, the second complete Java game I did was a text adventure which takes place in a haunted mansion. It was the final group project for my junior object oriented programming class in college. The controls are simple as it's just entering commands from the list of available commands, as is typical in text adventures. I grasped Object classes much easier in this class, which made for a better game with much much better code. I had always wanted to make a game like this, so I can cross that off my bucket list.

The Take Away

I should really learn how to integrate a GUI in the Eclipse IDE for Java. Also, I could experiment making more text adventure games because they're fun to write. I also learned that drawing levels out on paper is super useful for game designing. It's especially useful when making games where you have to rely on your imagination and text to "see" the game.