add level 1 story

This commit is contained in:
Kelly Peng 2022-04-25 21:34:43 -04:00
parent da40ee0b59
commit c9a2b97104
7 changed files with 103 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,102 @@
{
"texts": [
{
"speaker": "",
"content": "Press A/LEFT to go LEFT and D/RIGHT to go right",
"actions": [
{
"type": "loadSprite",
"key": "rightleft",
"path": "shattered_sword_assets/images/guide1.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "Press Z or space to jump, double-click to double-jump",
"actions": [
{
"type": "hideSprite",
"key": "rightleft"
},
{
"type": "loadSprite",
"key": "jump",
"path": "shattered_sword_assets/images/guide2.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "Press X to attack",
"actions": [
{
"type": "hideSprite",
"key": "rightleft"
},
{
"type": "loadSprite",
"key": "attack",
"path": "shattered_sword_assets/images/guide3.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "Press C to dash",
"actions": [
{
"type": "hideSprite",
"key": "attack"
},
{
"type": "loadSprite",
"key": "dash",
"path": "shattered_sword_assets/images/guide4.png",
"positon": [
300,
150
],
"scale": [
2,
2
]
}
]
},
{
"speaker": "",
"content": "",
"actions": [
{
"type": "hideSprite",
"key": "dash"
}
]
}
]
}

View File

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