Skip to content

SuperZombi/visual_novel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Novel Engine

print(text, args)

args - {
  next: _=>{}, // function

  choices: [
    {
      name: "choice1",
      condition: _=> {}, // if statement (not required)
      do: _=> {} // function
    },
    {
      name: "choice2", do: _=> {}
    }
  ],

  continue: _=>{} // function
}

continue allows you to merge branches after choices.

To exit from branch you need to call function return_to() and you will go to continue.

background(image)

Sets background image to canvas.

persona(image, id)

Adds a new person to the scene. (if this person already exists, it will be replaced by the person's image)
Id is a simply unique identifier for the person.

init_love_level(name, id, value)

change_love_level(id, value)

get_love_level(id)


go_to_menu()

progress(value)

Percentage of completion of this chapter. Changes the progress value in the main menu