add start story for the final stage

This commit is contained in:
Kelly Peng 2022-05-09 15:06:29 -04:00
parent 61587a46c4
commit c649f8ce21
2 changed files with 57 additions and 1 deletions

View File

@ -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"
}
]
}
]
}

View File

@ -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();
}
}