add level 1 story
This commit is contained in:
		
							parent
							
								
									da40ee0b59
								
							
						
					
					
						commit
						c9a2b97104
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/controls.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/controls.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 948 B  | 
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 978 B  | 
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide2.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide2.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide3.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide3.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide4.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/guide4.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.0 KiB  | 
							
								
								
									
										102
									
								
								dist/shattered_sword_assets/jsons/level1story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										102
									
								
								dist/shattered_sword_assets/jsons/level1story.json
									
									
									
									
										vendored
									
									
										Normal 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"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -948,7 +948,7 @@ export default class GameLevel extends Scene {
 | 
				
			||||||
    protected playStartStory() {
 | 
					    protected playStartStory() {
 | 
				
			||||||
        if (!this.touchedStartCheckPoint) {
 | 
					        if (!this.touchedStartCheckPoint) {
 | 
				
			||||||
            this.touchedStartCheckPoint = true;
 | 
					            this.touchedStartCheckPoint = true;
 | 
				
			||||||
            this.storyLoader("shattered_sword_assets/jsons/story.json");
 | 
					            this.storyLoader("shattered_sword_assets/jsons/level1story.json");
 | 
				
			||||||
            this.startTimer();
 | 
					            this.startTimer();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user