Requirements: python 3, pygame.
$python main.py
- 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
Usage:
- 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
- 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
$python util/txt2json.py Converts the map in readable txt format to json format
$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).
- 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
Use $style icon
to switch to icon style.
Use $style narrator
to switch to narrator style.
Use $style big
for the fullscreen text window style.
See screenshots
directory for more info.
Use $speaker name
to switch to speaker with the given name.
Make sure to put a png file named
name.png
to assets/messages/avatars
with the speaker's
picture.