diff --git a/dist/shattered_sword_assets/jsons/endstory.json b/dist/shattered_sword_assets/jsons/endstory.json new file mode 100644 index 0000000..70809ed --- /dev/null +++ b/dist/shattered_sword_assets/jsons/endstory.json @@ -0,0 +1,56 @@ +{ + "texts": [ + { + "speaker": "", + "content": "Press enter or space or J or X to continue", + "actions": [ + { + "type": "loadSprite", + "key": "storymode", + "path": "shattered_sword_assets/images/guide0.png", + "positon": [ + 300, + 150 + ], + "scale": [ + 3, + 3 + ] + } + ] + }, + { + "speaker": "", + "content": "Hiro is finally back in the castle and there's the dragon waiting for us!", + "actions": [ + { + "type": "hideSprite", + "key": "storymode" + }, + { + "type": "loadSprite", + "key": "enemies", + "path": "shattered_sword_assets/images/finalboss_story.png", + "positon": [ + 300, + 150 + ], + "scale": [ + 3, + 3 + ] + } + ] + }, + { + "speaker": "", + "content": "You are almost there!", + "actions": [ + { + "type": "hideSprite", + "key": "enemies" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/shattered_sword/Scenes/End.ts b/src/shattered_sword/Scenes/End.ts index dcab9b4..0868ed2 100644 --- a/src/shattered_sword/Scenes/End.ts +++ b/src/shattered_sword/Scenes/End.ts @@ -32,7 +32,7 @@ export default class End extends GameLevel { protected playStartStory(): void { if (!this.touchedStartCheckPoint) { this.touchedStartCheckPoint = true; - this.storyLoader("shattered_sword_assets/jsons/level1story.json"); + this.storyLoader("shattered_sword_assets/jsons/endstory.json"); this.startTimer(); } }