add level 5 start story

This commit is contained in:
Kelly Peng 2022-05-09 14:10:23 -04:00
parent e8bcf455eb
commit 68603026a5
5 changed files with 103 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,102 @@
{
"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 now in a multi-level store. There're monsters and slimes in the store.",
"actions": [
{
"type": "hideSprite",
"key": "storymode"
},
{
"type": "loadSprite",
"key": "enemies",
"path": "shattered_sword_assets/images/market_story1.png",
"positon": [
300,
150
],
"scale": [
3,
3
]
}
]
},
{
"speaker": "",
"content": "Hint: the monster camouflaged into walls!",
"actions": [
{
"type": "hideSprite",
"key": "enemies"
},
{
"type": "loadSprite",
"key": "camouflage",
"path": "shattered_sword_assets/images/market_story2.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "Hiro can only walk on the tiles. Be careful not to fall off the building.",
"actions": [
{
"type": "hideSprite",
"key": "camouflage"
},
{
"type": "loadSprite",
"key": "tiles",
"path": "shattered_sword_assets/images/market_story3.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "Good luck on your journey!",
"actions": [
{
"type": "hideSprite",
"key": "tiles"
}
]
}
]
}

View File

@ -49,7 +49,7 @@ export default class Market extends GameLevel {
protected playStartStory(): void { protected playStartStory(): void {
if (!this.touchedStartCheckPoint) { if (!this.touchedStartCheckPoint) {
this.touchedStartCheckPoint = true; this.touchedStartCheckPoint = true;
this.storyLoader("shattered_sword_assets/jsons/level1story.json"); this.storyLoader("shattered_sword_assets/jsons/level5story.json");
this.startTimer(); this.startTimer();
} }
} }