add some story and update hiro jump
This commit is contained in:
		
							parent
							
								
									5e932f8501
								
							
						
					
					
						commit
						8e56aa9450
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/story1.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 715 B  | 
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/story2.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/story2.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 821 B  | 
| 
						 | 
					@ -6,6 +6,48 @@
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "texts": [
 | 
					    "texts": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "There's a the legendary royal greatsword that is the only weapon powerful enough to slay the monster",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "sword",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/story1.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        600,
 | 
				
			||||||
 | 
					                        250
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        8,
 | 
				
			||||||
 | 
					                        8
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "But the monster shatter it into 6 pieces",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "sword"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "sword_shattered",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/story2.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        600,
 | 
				
			||||||
 | 
					                        250
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        8,
 | 
				
			||||||
 | 
					                        8
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "speaker": "Hiro",
 | 
					            "speaker": "Hiro",
 | 
				
			||||||
            "content": "Hello\r\n\nworld!",
 | 
					            "content": "Hello\r\n\nworld!",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										52
									
								
								dist/shattered_sword_assets/jsons/story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								dist/shattered_sword_assets/jsons/story.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,52 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "bgm": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "key": "test",
 | 
				
			||||||
 | 
					            "path": "shattered_sword_assets/sounds/test.mp3"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    "texts": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "There's a the legendary royal greatsword that is the only weapon powerful enough to slay the monster",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "sword",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/story1.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        600,
 | 
				
			||||||
 | 
					                        250
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        8,
 | 
				
			||||||
 | 
					                        8
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "speaker": "",
 | 
				
			||||||
 | 
					            "content": "But the monster shatter it into 6 pieces",
 | 
				
			||||||
 | 
					            "actions": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "hideSprite",
 | 
				
			||||||
 | 
					                    "key": "sword"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "loadSprite",
 | 
				
			||||||
 | 
					                    "key": "sword_shattered",
 | 
				
			||||||
 | 
					                    "path": "shattered_sword_assets/images/story2.png",
 | 
				
			||||||
 | 
					                    "positon": [
 | 
				
			||||||
 | 
					                        600,
 | 
				
			||||||
 | 
					                        250
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                    "scale": [
 | 
				
			||||||
 | 
					                        8,
 | 
				
			||||||
 | 
					                        8
 | 
				
			||||||
 | 
					                    ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,6 @@
 | 
				
			||||||
	"rows": 7,
 | 
						"rows": 7,
 | 
				
			||||||
	"durationType": "time",
 | 
						"durationType": "time",
 | 
				
			||||||
	"animations": [		
 | 
						"animations": [		
 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"name": "IDLE",
 | 
								"name": "IDLE",
 | 
				
			||||||
			"repeat": true,
 | 
								"repeat": true,
 | 
				
			||||||
| 
						 | 
					@ -20,7 +19,6 @@
 | 
				
			||||||
					"index": 1,
 | 
										"index": 1,
 | 
				
			||||||
					"duration": 150
 | 
										"duration": 150
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -61,9 +59,42 @@
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"name": "FALL",
 | 
				
			||||||
 | 
								"repeat": true,
 | 
				
			||||||
 | 
								"frames": [
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										"index": 0,
 | 
				
			||||||
 | 
										"duration": 150
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										"index": 1,
 | 
				
			||||||
 | 
										"duration": 150
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								]
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"name": "JUMP",
 | 
								"name": "JUMP",
 | 
				
			||||||
			"repeat": false,
 | 
								"repeat": false,
 | 
				
			||||||
 | 
								"frames": [
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										"index": 30,
 | 
				
			||||||
 | 
										"duration": 150
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										"index": 31,
 | 
				
			||||||
 | 
										"duration": 150
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										"index": 32,
 | 
				
			||||||
 | 
										"duration": 150
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								]
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"name": "JUMP_RIGHT",
 | 
				
			||||||
 | 
								"repeat": false,
 | 
				
			||||||
			"frames": [
 | 
								"frames": [
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					"index": 20,
 | 
										"index": 20,
 | 
				
			||||||
| 
						 | 
					@ -87,22 +118,6 @@
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			"name": "FALL",
 | 
					 | 
				
			||||||
			"repeat": true,
 | 
					 | 
				
			||||||
			"frames": [
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					"index": 0,
 | 
					 | 
				
			||||||
					"duration": 150
 | 
					 | 
				
			||||||
				},
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					"index": 1,
 | 
					 | 
				
			||||||
					"duration": 150
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			]
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"name": "JUMP_LEFT",
 | 
								"name": "JUMP_LEFT",
 | 
				
			||||||
			"repeat": false,
 | 
								"repeat": false,
 | 
				
			||||||
| 
						 | 
					@ -129,24 +144,6 @@
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			"name": "JUMP_UP",
 | 
					 | 
				
			||||||
			"repeat": false,
 | 
					 | 
				
			||||||
			"frames": [
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					"index": 30,
 | 
					 | 
				
			||||||
					"duration": 150
 | 
					 | 
				
			||||||
				},
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					"index": 31,
 | 
					 | 
				
			||||||
					"duration": 150
 | 
					 | 
				
			||||||
				},
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					"index": 32,
 | 
					 | 
				
			||||||
					"duration": 150
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			]
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"name": "ATTACK",
 | 
								"name": "ATTACK",
 | 
				
			||||||
			"repeat": false,
 | 
								"repeat": false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user