Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
json:scenes [2018/04/17 17:42] journeyman ↷ Page moved from scenes to sludge:scenes |
json:scenes [2019/04/23 03:03] (current) journeyman |
||
---|---|---|---|
Line 6: | Line 6: | ||
* Entries: The number of Moments in this scene | * Entries: The number of Moments in this scene | ||
* endAction: The name of the scene to continue on to after this one (unless redirected by choices) | * endAction: The name of the scene to continue on to after this one (unless redirected by choices) | ||
- | * <number>: One or more numbers corresponding to the Moments in a scene | + | * "#": One or more numbers corresponding to the Moments in a scene. These numbers are strings. |
Each numbered Moment in a Scene key all of the major categories of information for the Engine are stored. These include: | Each numbered Moment in a Scene key all of the major categories of information for the Engine are stored. These include: | ||
* sound: Sound to play during this moment. | * sound: Sound to play during this moment. | ||
- | * background: Image to show in the background during the moment. | + | * background: A list of maps containing data on what to show as a background picture. |
* timer: Amount of time to display the moment before moving to the next moment. | * timer: Amount of time to display the moment before moving to the next moment. | ||
* textbox: The data for all textboxes in this specific moment. | * textbox: The data for all textboxes in this specific moment. | ||
- | * characters: The data for all characters in this specific moment. | + | * characters: The ID numbers for which characters characters to show, and their moment-specific data. |
* choices: The data for all choices presenting in this specific moment. | * choices: The data for all choices presenting in this specific moment. | ||
Line 19: | Line 19: | ||
<code> | <code> | ||
{ | { | ||
- | "_myCurrentFilename": "sludge.txt", | + | "_myCurrentFilename": "slidge.txt", |
"sceneName": { | "sceneName": { | ||
"Entries": "0", | "Entries": "0", | ||
Line 25: | Line 25: | ||
"0": { | "0": { | ||
"sound": "", | "sound": "", | ||
- | "background": "", | + | "background": [{ |
+ | "x": 0, | ||
+ | "y": 0, | ||
+ | "image": "spriteName", | ||
+ | "alpha": 1, | ||
+ | }], | ||
+ | "skipChoice": "0", | ||
"timer": "-1", | "timer": "-1", | ||
- | "textbox": { | + | "textboxes": [{ |
- | "0": { | + | |
"typed": "1", | "typed": "1", | ||
"label": "[r:markedName]", | "label": "[r:markedName]", | ||
"animate": 1.000000, | "animate": 1.000000, | ||
- | "text": "Sample text", | + | "text": "Sample text 0", |
"avi": "", | "avi": "", | ||
- | "x": "542", | + | "x": "427", |
"style": "", | "style": "", | ||
- | "y": "588" | + | "y": "678" |
+ | }, { | ||
+ | "typed": "1", | ||
+ | "label": "[r:markedName]", | ||
+ | "animate": 1.000000, | ||
+ | "text": "Sample text 1", | ||
+ | "avi": "", | ||
+ | "x": "835", | ||
+ | "style": "", | ||
+ | "y": "455" | ||
} | } | ||
- | }, | + | ], |
- | "characters": { | + | "choices": [{ |
- | "0": { | + | |
- | "moveSpd": "-1", | + | |
- | "flipped": "0", | + | |
- | "fadeSpd": "-1", | + | |
- | "marked": "0", | + | |
- | "scale": "0.41", | + | |
- | "x": 256.000000, | + | |
- | "rotSpd": "-1", | + | |
- | "darkened": "0", | + | |
- | "ID": "0", | + | |
- | "y": 506.880000, | + | |
- | "expression": "" | + | |
- | } | + | |
- | }, | + | |
- | "choices": { | + | |
- | "0": { | + | |
"pin": 1.000000, | "pin": 1.000000, | ||
"link": "", | "link": "", | ||
Line 68: | Line 66: | ||
"label": "", | "label": "", | ||
"avi": "", | "avi": "", | ||
- | "style": "Default_hover" | + | "style": "Default" |
}, | }, | ||
- | "text": "Choice Text", | + | "text": "Choice Text 0", |
"sprite": "", | "sprite": "", | ||
- | "x": "617", | + | "x": "512", |
"condition": "", | "condition": "", | ||
- | "y": "204.20" | + | "y": "384" |
+ | }, { | ||
+ | "pin": 1.000000, | ||
+ | "link": "", | ||
+ | "ripple": "0", | ||
+ | "normal": { | ||
+ | "label": "", | ||
+ | "avi": "", | ||
+ | "style": "Default" | ||
+ | }, | ||
+ | "command": "", | ||
+ | "hover": { | ||
+ | "label": "", | ||
+ | "avi": "", | ||
+ | "style": "Default" | ||
+ | }, | ||
+ | "text": "Choice Text 1", | ||
+ | "sprite": "", | ||
+ | "x": "512", | ||
+ | "condition": "", | ||
+ | "y": "443.40" | ||
+ | } | ||
+ | ], | ||
+ | "characters": [{ | ||
+ | "moveSpd": "-1", | ||
+ | "flipped": "0", | ||
+ | "fadeSpd": "-1", | ||
+ | "marked": "0", | ||
+ | "scale": "1", | ||
+ | "x": 256.000000, | ||
+ | "rotSpd": "-1", | ||
+ | "darkened": "0", | ||
+ | "ID": "0", | ||
+ | "y": 506.880000, | ||
+ | "expression": "" | ||
+ | }, { | ||
+ | "moveSpd": "-1", | ||
+ | "flipped": "1", | ||
+ | "fadeSpd": "-1", | ||
+ | "marked": "0", | ||
+ | "scale": "0.35", | ||
+ | "x": "830", | ||
+ | "rotSpd": "-1", | ||
+ | "darkened": "0", | ||
+ | "ID": "1", | ||
+ | "y": "529.88", | ||
+ | "expression": "Default" | ||
} | } | ||
- | } | + | ] |
} | } | ||
} | } |