add end story to all levels
This commit is contained in:
parent
70c72adb33
commit
61587a46c4
|
@ -2,7 +2,7 @@
|
|||
"texts": [
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Hiro gained one more piece of sword!",
|
||||
"content": "Hiro collected one more piece of sword!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "loadSprite",
|
||||
|
@ -36,8 +36,8 @@
|
|||
150
|
||||
],
|
||||
"scale": [
|
||||
2,
|
||||
2
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
56
dist/shattered_sword_assets/jsons/level2endstory.json
vendored
Normal file
56
dist/shattered_sword_assets/jsons/level2endstory.json
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"texts": [
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Hiro collected one more piece of sword!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "collect",
|
||||
"path": "shattered_sword_assets/images/collect2.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Congrats! You can choose buff to gain from completing this level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "collect"
|
||||
},
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "buff",
|
||||
"path": "shattered_sword_assets/images/buff.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Let's move on to the next level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "buff"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
56
dist/shattered_sword_assets/jsons/level3endstory.json
vendored
Normal file
56
dist/shattered_sword_assets/jsons/level3endstory.json
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"texts": [
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Hiro collected one more piece of sword!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "collect",
|
||||
"path": "shattered_sword_assets/images/collect3.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Congrats! You can choose buff to gain from completing this level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "collect"
|
||||
},
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "buff",
|
||||
"path": "shattered_sword_assets/images/buff.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Let's move on to the next level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "buff"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
56
dist/shattered_sword_assets/jsons/level4endstory.json
vendored
Normal file
56
dist/shattered_sword_assets/jsons/level4endstory.json
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"texts": [
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Hiro collected one more piece of sword!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "collect",
|
||||
"path": "shattered_sword_assets/images/collect4.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Congrats! You can choose buff to gain from completing this level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "collect"
|
||||
},
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "buff",
|
||||
"path": "shattered_sword_assets/images/buff.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Let's move on to the next level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "buff"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
79
dist/shattered_sword_assets/jsons/level5endstory.json
vendored
Normal file
79
dist/shattered_sword_assets/jsons/level5endstory.json
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"texts": [
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Hiro collected one more piece of sword!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "collect",
|
||||
"path": "shattered_sword_assets/images/collect5.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Now, Hiro has restored the sword back. It's time to kill the dragon and save the kingdom!!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "collect"
|
||||
},
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "complete",
|
||||
"path": "shattered_sword_assets/images/complete.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "You can choose buff to gain from completing this level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "complete"
|
||||
},
|
||||
{
|
||||
"type": "loadSprite",
|
||||
"key": "buff",
|
||||
"path": "shattered_sword_assets/images/buff.png",
|
||||
"positon": [
|
||||
300,
|
||||
150
|
||||
],
|
||||
"scale": [
|
||||
3,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"speaker": "",
|
||||
"content": "Let's move on to the next level!",
|
||||
"actions": [
|
||||
{
|
||||
"type": "hideSprite",
|
||||
"key": "buff"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -61,7 +61,7 @@ export default class Forest extends GameLevel {
|
|||
protected playEndStory() {
|
||||
if (!this.touchedEndCheckPoint) {
|
||||
this.touchedEndCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/level1endstory.json");
|
||||
this.endTimer();
|
||||
this.levelEnded = true;
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ export default class Greatwall extends GameLevel {
|
|||
protected playEndStory() {
|
||||
if (!this.touchedEndCheckPoint) {
|
||||
this.touchedEndCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/level3endstory.json");
|
||||
this.endTimer();
|
||||
this.levelEnded = true;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ export default class Market extends GameLevel {
|
|||
protected playEndStory() {
|
||||
if (!this.touchedEndCheckPoint) {
|
||||
this.touchedEndCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/level5endstory.json");
|
||||
this.endTimer();
|
||||
this.levelEnded = true;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ export default class Porcelain extends GameLevel {
|
|||
protected playEndStory() {
|
||||
if (!this.touchedEndCheckPoint) {
|
||||
this.touchedEndCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/level2endstory.json");
|
||||
this.endTimer();
|
||||
this.levelEnded = true;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ export default class Snow extends GameLevel {
|
|||
protected playEndStory() {
|
||||
if (!this.touchedEndCheckPoint) {
|
||||
this.touchedEndCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/level4endstory.json");
|
||||
this.endTimer();
|
||||
this.levelEnded = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user