ShatteredSword/dist/shattered_sword_assets/jsons/samplestory.json
2022-04-11 21:58:21 -04:00

109 lines
2.9 KiB
JSON

{
"bgm": [
{
"key": "test",
"path": "shattered_sword_assets/sounds/test.mp3"
}
],
"texts": [
{
"speaker": "",
"content": "There's a the legendary royal greatsword that is the only weapon powerful enough to slay the monster",
"actions": [
{
"type": "loadSprite",
"key": "sword",
"path": "shattered_sword_assets/images/story1.png",
"positon": [
600,
250
],
"scale": [
8,
8
]
}
]
},
{
"speaker": "",
"content": "But the monster shatter it into 6 pieces",
"actions": [
{
"type": "hideSprite",
"key": "sword"
},
{
"type": "loadSprite",
"key": "sword_shattered",
"path": "shattered_sword_assets/images/story2.png",
"positon": [
600,
250
],
"scale": [
8,
8
]
}
]
},
{
"speaker": "Hiro",
"content": "Hello\r\n\nworld!",
"actions": [
{
"type": "loadSprite",
"key": "hiro",
"path": "shattered_sword_assets/images/Logo.png",
"positon": [
500,
500
],
"scale": [
1,
1
]
}
]
},
{
"speaker": "world",
"content": "Hello Hiro!",
"actions": [
{
"type": "moveSprite",
"key": "hiro",
"positon": [
100,
100
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "this should hide the image",
"actions": [
{
"type": "hideSprite",
"key": "hiro"
}
]
},
{
"speaker": "",
"content": "this should show it again",
"actions": [
{
"type": "showSprite",
"key": "hiro"
}
]
}
]
}