kuroneko1996 / cyberlab

jrpg-like game in pygame
MIT License
4 stars 3 forks source link
pygame

Cyberlab

Requirements: python 3, pygame.

$python main.py

Controls:

Menu:

Game:

You can change default key mapping in settings.py

Editing tools:

Tiled

$python util/tiled2json.py Imports map from Tiled

Usage:

How to add story triggers

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.

Development:

In-game text

To put text or an image on player's screen, simply make a message using Message(text).

More about text triggers:

Styling

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.

Changing speaker

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.