The whole boss fight scene is now configurable with json.
This commit is contained in:
parent
06f6098281
commit
06a174040f
5 changed files with 29 additions and 43 deletions
|
|
@ -4,7 +4,18 @@
|
|||
{"_type": "BossFight",
|
||||
"background": "test_background",
|
||||
"floor": "test_floor",
|
||||
"weapon_sound": "Sword_Hit_2"
|
||||
"floor_pos": "floor4",
|
||||
"player": {
|
||||
"sprite": "test_player",
|
||||
"start_pos": "player1",
|
||||
"scale": 0.5,
|
||||
"mid_cell": false
|
||||
},
|
||||
"boss": {
|
||||
"start_pos": "boss2",
|
||||
"scale": 0.7,
|
||||
"mid_cell": true
|
||||
}
|
||||
},
|
||||
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
|
||||
{"_type": "Animation",
|
||||
|
|
@ -19,31 +30,5 @@
|
|||
{"_type": "Sprite", "name": "test_boss", "width": 720, "height": 720, "scale": 0.8, "stationary": false},
|
||||
{"_type": "Sound", "attack": "Marmot_Scream_1", "death": "Creature_Death_1"}
|
||||
]
|
||||
},
|
||||
"DEVILS_FINGERS": {
|
||||
"components": [
|
||||
{"_type": "BossFight",
|
||||
"background": "test_background",
|
||||
"floor": "test_floor",
|
||||
"weapon_sound": "Sword_Hit_2"
|
||||
},
|
||||
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
|
||||
{"_type": "Animation",
|
||||
"easing": 1,
|
||||
"ease_rate": 0.1,
|
||||
"simple": false,
|
||||
"frames": 2,
|
||||
"speed": 0.02,
|
||||
"scale": 0.1,
|
||||
"stationary": true
|
||||
},
|
||||
{"_type": "Sprite",
|
||||
"name": "test_boss",
|
||||
"width": 720,
|
||||
"height": 720,
|
||||
"scale": 1.0
|
||||
},
|
||||
{"_type": "Sound", "attack": "Spider_1", "death": "Spider_2"}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue