add level 3 start story

This commit is contained in:
Kelly Peng 2022-05-09 13:31:43 -04:00
parent e220aa7e25
commit 602d770810
3 changed files with 57 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

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": "There're bulls and slimes in the great wall. Hint: the bull will dash when attack.",
"actions": [
{
"type": "hideSprite",
"key": "storymode"
},
{
"type": "loadSprite",
"key": "enemies",
"path": "shattered_sword_assets/images/wall_story1.png",
"positon": [
300,
150
],
"scale": [
3,
3
]
}
]
},
{
"speaker": "",
"content": "Good luck on your journey!",
"actions": [
{
"type": "hideSprite",
"key": "enemies"
}
]
}
]
}

View File

@ -45,7 +45,7 @@ export default class Greatwall 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/level3story.json");
this.startTimer();
}
}