A downloadable game

Rapunzel's relentlessly growing locks are the golden gift that keeps giving!

But you're tired of sharing a poky tower with a stroppy teenager. If only there was a way to fly off somewhere nice for a few days...

Tower of Rapunzel is Free software. It is a web-native single-puzzle text adventure, built entirely of:

  • Python 3.7+
  • HTML5
  • CSS3

It's a piece of work to demonstrate the use of the Turberfield dialogue library, and to show how that can be integrated into an asynchronous web framework.

Tower of Rapunzel's core logic is written in Python. The dialogue library provides a neat format to define and schedule the speech of the non-player characters.

Other architectures are possible. Authors less focused on coding may prefer to implement game logic within the dialogue itself. This too is supported by the Turberfield dialogue library.

I'm looking for feedback on the game and its underlying technology. Do please:

  • Leave a comment on the Itch.io game page
  • Flag a technical issue at the Github repository


Download

Download
tower_of_rapunzel-0.8.0.tar.gz 1.1 MB

Install instructions

Install

Create a Python virtual environment (version 3.7 or above):

On Windows:

python3.exe -m venv torvenv

On Linux:

python3 -m venv torvenv

Install the game (the version number may differ):

On Windows:

torvenv\Scripts\pip.exe install tower_of_rapunzel-0.8.0.tar.gz

On Linux:

torvenv/bin/pip install tower_of_rapunzel-0.8.0.tar.gz

Play

Launch the server:

On Windows:

torvenv\Scripts\torgame.exe

On Linux:

torvenv/bin/torgame

You should see this message:

 ======== Running on http://127.0.0.1:8080 ========
(Press CTRL+C to quit)

Point your browser to that address:

firefox http://127.0.0.1:8080

When you get to Rapunzel's chamber for the first time, you may need to enable audio in your browser tab if there is no sound to be heard.

Development log