Skip to main content

A text-driven web game.

Project description

Tower of Rapunzel

Install

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

python3 -m venv torvenv

Install the game (the version number may differ):

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

Play

Launch the server:

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.

Poster

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tower_of_rapunzel-0.10.0.tar.gz (2.3 MB view hashes)

Uploaded Source

Built Distribution

tower_of_rapunzel-0.10.0-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page