Skip to main content

A simple text adventure building framework

Project description

text-adventure-framework

Why create this?

My son wanted to program a text adventure game using python. I didn't find any frameworks in pure python that would make that easy. So decided to roll my own. It's rudimentary, but functional.

Install:

pip install text-adventure-framework

Or

pip install git+https://github.com/Caesurus/text_adventure.git

Usage:

from text_adventure import TextAdventureEngine 
e = TextAdventureEngine()
e.add_room(name='starting room', description='you wake up in a starting room')
e.add_room(name='room 1', description='room after leaving start')
e.add_room(name='finish', description='outside world', is_end=True)

e.connect_rooms(source='starting room', destination='room 1', direction='left', description='you see a door to your left')
e.connect_rooms(source='room 1', destination='finish', direction='forward', description='the exit is right in front of you')

e.start()

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_adventure_framework-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_adventure_framework-0.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file text_adventure_framework-0.1.2.tar.gz.

File metadata

  • Download URL: text_adventure_framework-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for text_adventure_framework-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d7805f9f4735fffd1c86d9d5e0c2b12408b94debc9bac3aee034f994b9b8e4d7
MD5 50cdb2355dd25af6bb1c72b085151f16
BLAKE2b-256 bcc85a14c40edfc4ff7bdb46dc8a3b3f7e4acc3c7cf5de89c7aad705ab41379b

See more details on using hashes here.

File details

Details for the file text_adventure_framework-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: text_adventure_framework-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for text_adventure_framework-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae162aad1d9611c5c91724bb24fc005aa26361083020eff3f88e9ffec84b5d5c
MD5 b2d10218d5f079fa35a0c82d22e71cad
BLAKE2b-256 a19eb0c26849f0f8e6deb63c3e73cd49bdf05e8c3db846a99a1352321bb4a434

See more details on using hashes here.

Supported by

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