diff --git a/assets/items/crate.json b/assets/items/crate.json index e1b747b3a9..6437e8e4f4 100644 --- a/assets/items/crate.json +++ b/assets/items/crate.json @@ -12,6 +12,10 @@ "x": 0, "y": -16 }, + "effect_offset": { + "x": 0, + "y": 22 + }, "effects": [ { "type": "triggered_effect", @@ -21,9 +25,11 @@ ], "collide_with_platforms": true, "velocity": { - "x": 5.0, - "y": -2.5 + "x": 10.0, + "y": -4.0 }, + "gravity": 0.5, + "can_rotate": true, "size": { "x": 30, "y": 30 @@ -33,6 +39,27 @@ "type": "rect_collider", "width": 36, "height": 32 + }, + { + "type": "triggered_effect", + "size": { + "x": 128, + "y": 128 + }, + "collide_with_platforms": true, + "timed_trigger": 0.7, + "sprite": { + "texture": "crate_breaking", + "autoplay_id": "effect", + "animations": [ + { + "id": "effect", + "row": 0, + "frames": 24, + "fps": 60 + } + ] + } } ], "sprite": { diff --git a/assets/maps/test_level.json b/assets/maps/test_level.json index 8e3bc3a8f2..9e15811b5e 100644 --- a/assets/maps/test_level.json +++ b/assets/maps/test_level.json @@ -1017,7 +1017,7 @@ } }, { - "id": "kick_bomb", + "id": "crate", "kind": "item", "position": { "x": 271.9712, diff --git a/assets/textures.json b/assets/textures.json index b5252a1a36..3ff74bf204 100644 --- a/assets/textures.json +++ b/assets/textures.json @@ -504,5 +504,14 @@ "x": 176, "y": 144 } + }, + { + "id": "crate_breaking", + "path": "textures/particles/CrateBreaking(128x128).png", + "type": "spritesheet", + "sprite_size": { + "x": 128, + "y": 128 + } } ] diff --git a/assets/textures/particles/CrateBreaking(128x128).png b/assets/textures/particles/CrateBreaking(128x128).png new file mode 100644 index 0000000000..7e2b43f768 Binary files /dev/null and b/assets/textures/particles/CrateBreaking(128x128).png differ