diff --git a/dist/shattered_sword_assets/images/story1.png b/dist/shattered_sword_assets/images/story1.png index fe2ddeb..f4b374b 100644 Binary files a/dist/shattered_sword_assets/images/story1.png and b/dist/shattered_sword_assets/images/story1.png differ diff --git a/dist/shattered_sword_assets/images/story2.png b/dist/shattered_sword_assets/images/story2.png index fd4de83..489eb2f 100644 Binary files a/dist/shattered_sword_assets/images/story2.png and b/dist/shattered_sword_assets/images/story2.png differ diff --git a/dist/shattered_sword_assets/images/story3.png b/dist/shattered_sword_assets/images/story3.png new file mode 100644 index 0000000..280caca Binary files /dev/null and b/dist/shattered_sword_assets/images/story3.png differ diff --git a/dist/shattered_sword_assets/images/story4.png b/dist/shattered_sword_assets/images/story4.png new file mode 100644 index 0000000..c501141 Binary files /dev/null and b/dist/shattered_sword_assets/images/story4.png differ diff --git a/dist/shattered_sword_assets/jsons/samplestory.json b/dist/shattered_sword_assets/jsons/samplestory.json index 73fe82a..07cd009 100644 --- a/dist/shattered_sword_assets/jsons/samplestory.json +++ b/dist/shattered_sword_assets/jsons/samplestory.json @@ -49,16 +49,76 @@ ] }, { - "speaker": "Hiro", - "content": "Hello\r\n\nworld!", + "speaker": "", + "content": "Hiro is the only prince from the kingdom", "actions": [ + { + "type": "hideSprite", + "key": "sword_shattered" + }, + { + "type": "loadSprite", + "key": "hiro_appear", + "path": "shattered_sword_assets/images/story3.png", + "positon": [ + 630, + 300 + ], + "scale": [ + 7, + 7 + ] + } + ] + }, + { + "speaker": "Hiro", + "content": "To bring prosperity back to the kingdom...", + "actions": [ + { + "type": "hideSprite", + "key": "hiro_appear" + }, + { + "type": "loadSprite", + "key": "hiro_sword", + "path": "shattered_sword_assets/images/story4.png", + "positon": [ + 630, + 300 + ], + "scale": [ + 7, + 7 + ] + } + ] + }, + { + "speaker": "Hiro", + "content": "I should go on the journey to collect the pieces of the sword... and kill the monster!", + "actions": [ + { + "type": "showSprite", + "key": "hiro_sword" + } + ] + }, + { + "speaker": "", + "content": "", + "actions": [ + { + "type": "hideSprite", + "key": "hiro_sword" + }, { "type": "loadSprite", "key": "hiro", "path": "shattered_sword_assets/images/Logo.png", "positon": [ - 500, - 500 + 650, + 300 ], "scale": [ 1, diff --git a/dist/shattered_sword_assets/jsons/story.json b/dist/shattered_sword_assets/jsons/story.json index 47ead3d..d88e2c3 100644 --- a/dist/shattered_sword_assets/jsons/story.json +++ b/dist/shattered_sword_assets/jsons/story.json @@ -47,6 +47,85 @@ ] } ] + }, + { + "speaker": "", + "content": "Hiro is the only prince from the kingdom", + "actions": [ + { + "type": "hideSprite", + "key": "sword_shattered" + }, + { + "type": "loadSprite", + "key": "hiro_appear", + "path": "shattered_sword_assets/images/story3.png", + "positon": [ + 630, + 300 + ], + "scale": [ + 7, + 7 + ] + } + ] + }, + { + "speaker": "Hiro", + "content": "To bring prosperity back to the kingdom...", + "actions": [ + { + "type": "hideSprite", + "key": "hiro_appear" + }, + { + "type": "loadSprite", + "key": "hiro_sword", + "path": "shattered_sword_assets/images/story4.png", + "positon": [ + 630, + 300 + ], + "scale": [ + 7, + 7 + ] + } + ] + }, + { + "speaker": "Hiro", + "content": "I should go on the journey to collect the pieces of the sword... and kill the monster!", + "actions": [ + { + "type": "showSprite", + "key": "hiro_sword" + } + ] + }, + { + "speaker": "", + "content": "", + "actions": [ + { + "type": "hideSprite", + "key": "hiro_sword" + }, + { + "type": "loadSprite", + "key": "hiro", + "path": "shattered_sword_assets/images/Logo.png", + "positon": [ + 650, + 300 + ], + "scale": [ + 1, + 1 + ] + } + ] } ] } \ No newline at end of file diff --git a/src/shattered_sword/Scenes/SceneWithStory.ts b/src/shattered_sword/Scenes/SceneWithStory.ts index f5f8da7..346bac9 100644 --- a/src/shattered_sword/Scenes/SceneWithStory.ts +++ b/src/shattered_sword/Scenes/SceneWithStory.ts @@ -203,7 +203,7 @@ export default class SceneWithStory extends Scene { let event = this.receiver.getNextEvent(); // Testing code if (event.type === "loadStory" && this.currentMode === Mode.GAME_MODE) { - this.storyLoader("shattered_sword_assets/jsons/samplestory.json"); + this.storyLoader("shattered_sword_assets/jsons/story.json"); } } // Testing code