Tutorial
Prefer to learn by following along a tutorial? Well this is for you.
Last updated
Was this helpful?
Prefer to learn by following along a tutorial? Well this is for you.
Last updated
Was this helpful?
Make sure all the steps from has been done successfully. At this point, your browser should display the example game through localhost
Open src/game/allParagraphs.ts
. You will be greeted with the demo game content inside function getParagraph()
. Delete all content inside
Currently, Visual Studio Code users can quickly generate VeinIF code snippets. type paragraph
and press TAB or Enter for a new paragraph object.
For other IDEs, this function is not supported yet. Simply copy the above code into getParagraph()
The first paragraph object should has property name: "start"
The nextName
property of a choice and name
property of a paragraph must match to successfully "branch" them together.
Example: