add level4 start story
This commit is contained in:
		
							parent
							
								
									567e182709
								
							
						
					
					
						commit
						2e9862539e
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/snow_story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/snow_story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.7 KiB  | 
							
								
								
									
										61
									
								
								dist/shattered_sword_assets/jsons/level4story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								dist/shattered_sword_assets/jsons/level4story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,61 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "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": "We're now in a snow mountain. There're archers and slimes in the mountain.",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "storymode"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "enemies",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/snow_story1.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        300,
 | 
				
			||||||
 | 
					                        150
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        3,
 | 
				
			||||||
 | 
					                        3
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "Hint: jump when under attack!",
 | 
				
			||||||
 | 
					            "actions": []
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "Good luck on your journey!",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "enemies"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 2.2 KiB  | 
| 
						 | 
					@ -50,7 +50,7 @@ export default class Snow 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/level4story.json");
 | 
				
			||||||
            this.startTimer();
 | 
					            this.startTimer();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user