A Python library for creating text-based games.
Project description
TBGDL
A Python library for creating text-based games.
Features
tbgdl_print(text, color) - Like print but also adds the ability to color the text. Makes cool ASCII art too!
tbgdl_clear() - Clears the screen.
tbgdl_quit() - Quits the application.
tbgdl_getinput() - Gets user input.
tbgdl_new_scene(command1, command2, command3, command4, command5, command6, command7, command8, command9, command10) - Can only be used in a variable, else that scene can't be referenced anywhere else in your code. If you have empty spaces, replace them up to command10 with 0. tbgdl_getinput() cannot be used in this function.
tbgdl_load_scene(scene) - Loads the variable that you stored your scene in.
tbgdl_playsound(note, sound) - Make beeps with it. The notes need to be in a string, and the sound param is the duration of the beep.
Variables
default - The default color white. Can only be used when a function needs a color.
red - The color red. Can only be used when a function needs a color.
black - The color black. Can only be used when a function needs a color.
blue - The color blue. Can only be used when a function needs a color.
magenta - The color magenta. Can only be used when a function needs a color.
yellow - The color yellow. Can only be used when a function needs a color.
cyan - The color cyan. Can only be used when a function needs a color.
green - The color green. Can only be used when a function needs a color.
Requirements
colorama - For tbgdl_print(text, color) command.
musicalbeeps - For tbgdl_playsound(note, sound) command.
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
Built Distribution
File details
Details for the file TBGDL-1.0.3.tar.gz
.
File metadata
- Download URL: TBGDL-1.0.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bf157328a8b3fda327111d20251b1df1adbfd7202c4d382bfe7e577b1c5ce4 |
|
MD5 | 46fb453d2fe44b1ef12d2bc18e4f65ee |
|
BLAKE2b-256 | 6b5cd8a01da024dd7ab5ff2de91a13919a6fc35683403bd4f16e16151fc8c159 |
File details
Details for the file TBGDL-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: TBGDL-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aabbb792d70c915da12bf118054d43eeb530550c8dba0418839ba1c007afacc2 |
|
MD5 | f93054678d6ab6dd1a7b4c57e0fbc6c2 |
|
BLAKE2b-256 | 71754e7f7cd66765ff9ca797142d9ba140a9cf64af843a2e48f7e7e8c6f240d5 |