Skip to main content

A Python library for easily making text adventure games.

Project description

Text Adventures

A Python library for easily making text adventure games.

Inspired by textadventure.

Getting Started

Add this code to import the package:

import text_adventures

Scene

To create a Scene, add this code:

myScene = text_adventures.Scene()

Scenes take 2 arguments:

  • title: a str that gets printed at the top of the console.
  • actions: an Iterable of Actions that will be ran in order.

Actions

Actions can be set to run in a Scene. There are currently 4 options:

  • Text
  • GoTo
  • Options
  • Interaction

But you can expect more soon, or if you don't want to wait, you can make your own! There is a very simple Action class that you can import to create your own Actions.

Change Log

v0.0.1 (6/10/2023)

  • First release

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

text_adventures-0.0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

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