add level 5 start story
This commit is contained in:
parent
e8bcf455eb
commit
68603026a5
BIN
dist/shattered_sword_assets/images/market_story1.png
vendored
Normal file
BIN
dist/shattered_sword_assets/images/market_story1.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
dist/shattered_sword_assets/images/market_story2.png
vendored
Normal file
BIN
dist/shattered_sword_assets/images/market_story2.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
dist/shattered_sword_assets/images/market_story3.png
vendored
Normal file
BIN
dist/shattered_sword_assets/images/market_story3.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
102
dist/shattered_sword_assets/jsons/level5story.json
vendored
Normal file
102
dist/shattered_sword_assets/jsons/level5story.json
vendored
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -49,7 +49,7 @@ export default class Market 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/level5story.json");
|
||||
this.startTimer();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user