AnimatedScene now defines how a scene with animated sprites and actors is structured and played.
This commit is contained in:
parent
e1da089600
commit
25f7096489
10 changed files with 43 additions and 48 deletions
|
|
@ -134,9 +134,9 @@
|
|||
"max_scale": 0.9,
|
||||
"simple": true,
|
||||
"frames": 1,
|
||||
"speed": 1.0,
|
||||
"speed": 0.5,
|
||||
"stationary": false,
|
||||
"toggled": false,
|
||||
"toggled": true,
|
||||
"looped": false
|
||||
},
|
||||
"hairy_spider": {
|
||||
|
|
|
|||
|
|
@ -1,21 +1,23 @@
|
|||
{
|
||||
"RAT_KING": {
|
||||
"components": [
|
||||
{"_type": "BossFight",
|
||||
{"_type": "AnimatedScene",
|
||||
"background": "test_background",
|
||||
"floor": false,
|
||||
"floor_pos": "floor1",
|
||||
"player": {
|
||||
"sprite": "peasant_girl_rear_view",
|
||||
"start_pos": "player2",
|
||||
"scale": 0.5,
|
||||
"mid_cell": false
|
||||
},
|
||||
"boss": {
|
||||
"start_pos": "boss5",
|
||||
"scale": 0.6,
|
||||
"mid_cell": true,
|
||||
"sprite": "rat_king_boss"
|
||||
"actors": {
|
||||
"player": {
|
||||
"sprite": "peasant_girl_rear_view",
|
||||
"start_pos": "player2",
|
||||
"scale": 0.5,
|
||||
"mid_cell": false
|
||||
},
|
||||
"boss": {
|
||||
"sprite": "rat_king_boss",
|
||||
"start_pos": "boss5",
|
||||
"scale": 0.6,
|
||||
"mid_cell": true
|
||||
}
|
||||
},
|
||||
"fixtures": [
|
||||
{"name": "torch_fixture", "scale_x": 0.5, "scale_y": 0.5, "cell": "torch1", "x": 66, "y": -50},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue