add some story and update hiro jump

This commit is contained in:
Kelly Peng 2022-04-11 21:58:21 -04:00
parent 5e932f8501
commit 8e56aa9450
5 changed files with 128 additions and 37 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

View File

@ -6,6 +6,48 @@
}
],
"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",
"content": "Hello\r\n\nworld!",

View 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
]
}
]
}
]
}

View File

@ -7,7 +7,6 @@
"rows": 7,
"durationType": "time",
"animations": [
{
"name": "IDLE",
"repeat": true,
@ -20,7 +19,6 @@
"index": 1,
"duration": 150
}
]
},
{
@ -61,9 +59,42 @@
}
]
},
{
"name": "FALL",
"repeat": true,
"frames": [
{
"index": 0,
"duration": 150
},
{
"index": 1,
"duration": 150
}
]
},
{
"name": "JUMP",
"repeat": false,
"frames": [
{
"index": 30,
"duration": 150
},
{
"index": 31,
"duration": 150
},
{
"index": 32,
"duration": 150
}
]
},
{
"name": "JUMP_RIGHT",
"repeat": false,
"frames": [
{
"index": 20,
@ -87,22 +118,6 @@
}
]
},
{
"name": "FALL",
"repeat": true,
"frames": [
{
"index": 0,
"duration": 150
},
{
"index": 1,
"duration": 150
}
]
},
{
"name": "JUMP_LEFT",
"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",
"repeat": false,