add level 3 start story
This commit is contained in:
		
							parent
							
								
									e220aa7e25
								
							
						
					
					
						commit
						602d770810
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/wall_story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/wall_story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.0 KiB  | 
							
								
								
									
										56
									
								
								dist/shattered_sword_assets/jsons/level3story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								dist/shattered_sword_assets/jsons/level3story.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": "There're bulls and slimes in the great wall. Hint: the bull will dash when attack.",
 | 
			
		||||
            "actions": [
 | 
			
		||||
                {
 | 
			
		||||
                    "type": "hideSprite",
 | 
			
		||||
                    "key": "storymode"
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "type": "loadSprite",
 | 
			
		||||
                    "key": "enemies",
 | 
			
		||||
                    "path": "shattered_sword_assets/images/wall_story1.png",
 | 
			
		||||
                    "positon": [
 | 
			
		||||
                        300,
 | 
			
		||||
                        150
 | 
			
		||||
                    ],
 | 
			
		||||
                    "scale": [
 | 
			
		||||
                        3,
 | 
			
		||||
                        3
 | 
			
		||||
                    ]
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "speaker": "",
 | 
			
		||||
            "content": "Good luck on your journey!",
 | 
			
		||||
            "actions": [
 | 
			
		||||
                {
 | 
			
		||||
                    "type": "hideSprite",
 | 
			
		||||
                    "key": "enemies"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ export default class Greatwall 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/level3story.json");
 | 
			
		||||
            this.startTimer();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user