add start story for the final stage
This commit is contained in:
		
							parent
							
								
									61587a46c4
								
							
						
					
					
						commit
						c649f8ce21
					
				
							
								
								
									
										56
									
								
								dist/shattered_sword_assets/jsons/endstory.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								dist/shattered_sword_assets/jsons/endstory.json
									
									
									
									
										vendored
									
									
										Normal 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": "Hiro is finally back in the castle and there's the dragon waiting for us!",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "storymode"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "enemies",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/finalboss_story.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        300,
 | 
				
			||||||
 | 
					                        150
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        3,
 | 
				
			||||||
 | 
					                        3
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "You are almost there!",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "enemies"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@ export default class End 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/endstory.json");
 | 
				
			||||||
            this.startTimer();
 | 
					            this.startTimer();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user