-
Notifications
You must be signed in to change notification settings - Fork 1
Home
PyTextGame is a text-based game development library which can be used to make console-based games. This package is available both on GitHub and on PyPi.
-
The
Playgroundclass inpytextgame.coreis the main class. It is used for managing your game. It has 3 functions -importDataused to import the saved game state [Parameters:msg: boolused for hiding or showing logs],saveDataused for saving game state [Parameters:datadictionary containing game information,msg:boolsame asimportData], andplayused for starting the game [Parameters:playerinstance of the Player class. while initializing you need to provide it - the path to the JSON file used for storing data, the map of the game which is a list containing the objects ofRoomclass in any dimension, and set whether the target platform is Windows. -
The
pytextgame.iomodule contains 2 methods for taking input -optionList: shows a list of options and inputs a choice [Parameters:option_list], andgetch` used for taking a charecter as input. -
The
Roomclass in thepytextgame.components.roomsis used for creating a room. A 'room' is a particular environment for a stage or a scene of your game.
Documentation will be continued...
The library is currently under development.
It is undergoing continuous updates.
The full release will be available in PyPi and GitHub in a few weeks.
Currently the v0.1 release that is uploaded here is live on PyPi.
Please download the stable release given in the Releases or using pip as the master branch is currently unstable.
Thank you to all the contributors for their priceless efforts to make this software better. Contributions are not currently accepted.
By Himank Deka [@dev-hd11]
Copyright ©️ 2023 Himank Deka