Narrat Docs
Search…
Narrat Docs
Narrat
Functions Documentation
Jump
Choice
Set
Add
Talk
If
Set Screen
Set Button
Clear Dialog
Play
Stop
Pause
Wait
Add Level
Add XP
Notify
Set Stat
Add Stat
Text Field
Features
Quests
Inventory
HUD Stats
Screens
Skills System
Saving and Reloading
Playing Audio
Functions
Guides
Language syntax and expressions
Using items
Getting Started
Config files
Useful Links
Theming the game and UI
Installing Narrat in a web app
Editing a narrat game
Building and exporting your game
Examples
Example Config
Example narrat script
Powered By
GitBook
Example Config
Those example config files are the ones used in the narrat demo
Those example config files are the ones used in the narrat demo. For the most up to date versions, visit the GitHub links.
Game Config
narrat-demo/config.json at main · liana-pigeot/narrat-demo
GitHub
Example game config.json
Characters Config
narrat-demo/characters.json at main · liana-pigeot/narrat-demo
GitHub
1
{
2
"config"
:
{
3
"imagesPath"
:
"./img/characters/"
4
},
5
"characters"
:
{
6
"game"
:
{
7
"name"
:
""
,
8
"color"
:
"white"
9
},
10
"player"
:
{
11
"style"
:
{
12
"color"
:
"orange"
13
},
14
"name"
:
"You"
15
},
16
"cat"
:
{
17
"sprites"
:
{
18
"idle"
:
"cat_idle.jpg"
19
},
20
"style"
:
{
21
"color"
:
"white"
22
},
23
"name"
:
"Generic Cat"
24
},
25
"helper"
:
{
26
"sprites"
:
{
27
"idle"
:
"helper_cat.png"
28
},
29
"style"
:
{
30
"color"
:
"green"
31
},
32
"name"
:
"Helper Cat"
33
},
34
"music_cat"
:
{
35
"sprites"
:
{
36
"idle"
:
"music_cat.jpeg"
37
},
38
"style"
:
{
39
"color"
:
"green"
40
},
41
"name"
:
"Music Cat"
42
},
43
"inner"
:
{
44
"sprites"
:
{
45
"idle"
:
"inner_voice.png"
46
},
47
"style"
:
{
48
"color"
:
"red"
49
},
50
"name"
:
"Inner Voice"
51
}
52
}
53
}
54
Copied!
Guides - Previous
Building and exporting your game
Next - Examples
Example narrat script
Last modified
26d ago
Copy link
Contents
Game Config
Characters Config