From c649f8ce21d467a53bb2a26d64c1e2f5ea310419 Mon Sep 17 00:00:00 2001 From: Kelly Peng Date: Mon, 9 May 2022 15:06:29 -0400 Subject: [PATCH] add start story for the final stage --- .../jsons/endstory.json | 56 +++++++++++++++++++ src/shattered_sword/Scenes/End.ts | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 dist/shattered_sword_assets/jsons/endstory.json 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(); } }