Now have the ability to place animated fixtures anywhere and to flip them.
This commit is contained in:
parent
e99c07b50c
commit
387d1a5bf5
7 changed files with 36 additions and 17 deletions
|
|
@ -142,7 +142,7 @@
|
|||
"speed": 0.02,
|
||||
"stationary": true
|
||||
},
|
||||
"torch_crappy": {
|
||||
"torch_fixture": {
|
||||
"_type": "Animation",
|
||||
"easing": 0,
|
||||
"ease_rate": 0.5,
|
||||
|
|
|
|||
|
|
@ -18,10 +18,8 @@
|
|||
"sprite": "rat_king_boss"
|
||||
},
|
||||
"fixtures": [
|
||||
{"name": "torch_crappy", "scale": 0.8, "cell": "torch1"},
|
||||
{"name": "torch_crappy", "scale": 0.8, "cell": "torch2"},
|
||||
{"name": "rat_with_sword", "scale": 0.8, "cell": "boss13"},
|
||||
{"name": "rat_with_sword", "scale": 0.8, "cell": "boss16"}
|
||||
{"name": "torch_fixture", "scale_x": 0.5, "scale_y": 0.5, "cell": "torch1", "x": 66, "y": -10},
|
||||
{"name": "torch_fixture", "scale_x": -0.5, "scale_y": 0.5, "cell": "torch2", "x": 130, "y": -10}
|
||||
]
|
||||
},
|
||||
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
|
||||
|
|
|
|||
|
|
@ -80,6 +80,11 @@
|
|||
"frame_width": 256,
|
||||
"frame_height": 256
|
||||
},
|
||||
"torch_fixture":
|
||||
{"path": "assets/fixtures/torch_fixture.png",
|
||||
"frame_width": 256,
|
||||
"frame_height": 256
|
||||
},
|
||||
"torch_crappy":
|
||||
{"path": "assets/items/torch_crappy.png",
|
||||
"frame_width": 256,
|
||||
|
|
|
|||
BIN
assets/fixtures/torch_fixture.png
Normal file
BIN
assets/fixtures/torch_fixture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue