Requirements: python 3, pygame.
- Up/Down keys to select option
- Enter to choose option
- Arrow keys for movement. Numeric pad works too.
- Look at the door and press E or Enter to open/close it
- E or G to pickup items, Q to drop
- Return to show next text message
- Space to ignore all the text messages in the current queue
- F11 toggles fullscreen
You can change default key mapping in settings.py
$python util/tiled2json.py Imports map from Tiled
- Load the tileset using assets/spritesheet.png
- Make a new map
- Save the map as .json
- Run the script to convert in the internal map format
How to add story triggers
- Add a new objects layer
- Selects a rectangular area
- Add a custom property called text
- The value of that property would be the displayed text
Plain old ascii art
$python util/txt2json.py Converts the map in readable txt format to json format
Compiling into executable
$python -m pip install cx_Freeze --upgrade to install cx_Freeze module
$python setup.py build
It will create build folder with binaries.
To put text or an image on player's screen, simply make a message using Message(text).
More about text triggers:
- Put two line breaks to create separate messages
- Put single line breaks to format messages
- Use # after a newline to create a comment
- Recommended maximum line length for picture chat mode is 50 characters
$style icon to switch to icon style.
$style narrator to switch to narrator style.
$style big for the fullscreen text window style.
screenshots directory for more info.
$speaker name to switch to speaker with the given name.
Make sure to put a png file named
assets/messages/avatars with the speaker's