Skip to content

deangelisdf/visual_novel_pyarcade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

visual_novel_pyarcade

πŸ‘¨β€πŸ’» Visual novel with python arcade https://github.com/pythonarcade/arcade

Feature

  • character managment
  • event managment
  • dialog-tree based on json format

How to use

Steps:

  1. Define characters. Those are defined by names (string) and an image (arcade.Sprite).
  2. setup the view, you should give him, as parameter, the json dialog path.
  3. define the events. If exist.
  4. Set the new view and use it

Please look also the emample/simple_example.py

How to install

pip install graphic-novel-pyarcade

How to use View (user guide)

By default the keyboard layout is configured in followed way:

ENTER: Next Dialog

TAB: Skip dialog (until menu or opened answer)

H: hide gui (If skip active the messages keep going)

How make a dialog

The objective of this framework is to achieve it as simple task. What do you need?

  1. Create a new json file and create an object insiede
  2. The attributes of this first object must be see as LABEL. Well-Know: "init" is the dialog entry pointer
  3. Each Label, contain an attribute called "block" (this is an array)
  4. Each array element, Is composed always by:
    • name character, as a string (case sensitive)
    • message
      • can be a string (that mean what the character said)
      • can be a menu (an object)
    • actions (if the message type is not a menu)
      • Those are composed by two words: ACTION ARGUMENT
      • The actions implemented are: move, alpha, restart, jmp

How to write a menu? The menu is an object composed by two attributes: "menu" (with only a value implemented: regular) and "choice" an array of objects composed as follow: "txt" is a string containing the text and "jmp" the label where you want to jump after the selection of choice

About

πŸ‘¨β€πŸ’» visual novel with python arcade

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages