Now have the ability to place animated fixtures anywhere and to flip them.

This commit is contained in:
Zed A. Shaw 2025-10-20 00:29:12 -04:00
parent e99c07b50c
commit 387d1a5bf5
7 changed files with 36 additions and 17 deletions

View file

@ -142,7 +142,7 @@
"speed": 0.02,
"stationary": true
},
"torch_crappy": {
"torch_fixture": {
"_type": "Animation",
"easing": 0,
"ease_rate": 0.5,

View file

@ -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},

View file

@ -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,

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB