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/05/01 20:31] journeyman |
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", | "skipChoice": "0", | ||
"timer": "-1", | "timer": "-1", |