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
Install the library using pip or your package manager of choice:
pip install text-adventures
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: astrthat gets printed at the top of the console.actions: anIterableofActions that will be ran in order.
Actions
Actions can be set to run in a Scene. There are currently 4 options:
TextGoToOptionsInteraction
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
Alpha
v0.0.5 (6/11/2023)
- Actually fixed links to the Repl
v0.0.4 (6/11/2023)
- Attempted to fix links to the Repl
v0.0.3 (6/11/2023)
- Updated the CHANGELOG
v0.0.2 (6/11/2023)
- Updated README to include how to install the package
- Added more links to the package on PyPI
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.5.tar.gz
(4.8 kB
view details)
File details
Details for the file text_adventures-0.0.5.tar.gz.
File metadata
- Download URL: text_adventures-0.0.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f7315c10ffc2652c30f70f262781bdf349bf26f13d21882b6de528c4875b515
|
|
| MD5 |
37c37677e130a7dbaf89f50b17134b91
|
|
| BLAKE2b-256 |
95097e86ec62f4c2582bec5ff62424503500e6af60dce8ada9097ea6b7498794
|