c0a022fed4
An Fx autoload + one_shot_effect base so every effect is an inspector-editable .tscn (the systems/fx/ authoring dir): blood/slam/spark/flash primitives and the bull's kick/dash/slam/roll + movement effects (bull_*.tscn), fired via Fx.spawn() / Fx.attach(). Plus a preview gallery + smoke test, and bull_impact_fx.gd for the coded, non-particle slam rings + kick flash-pop. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCyaJPTHCH9EDthpf4A5Sj
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://systems/fx/one_shot_effect.gd" id="1_kk3a7"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tjifq"]
|
|
transparency = 1
|
|
cull_mode = 2
|
|
shading_mode = 0
|
|
vertex_color_use_as_albedo = true
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_pv2r6"]
|
|
material = SubResource("StandardMaterial3D_tjifq")
|
|
radius = 0.03
|
|
height = 0.06
|
|
radial_segments = 4
|
|
rings = 2
|
|
|
|
[sub_resource type="Curve" id="Curve_l33bb"]
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="Gradient" id="Gradient_pnkyn"]
|
|
colors = PackedColorArray(1, 0.95, 0.6, 1, 1, 0.55, 0.1, 0)
|
|
|
|
[node name="spark" type="CPUParticles3D" unique_id=69954641]
|
|
emitting = false
|
|
amount = 14
|
|
lifetime = 0.35
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
randomness = 0.6
|
|
mesh = SubResource("SphereMesh_pv2r6")
|
|
direction = Vector3(0, 1, 0)
|
|
gravity = Vector3(0, -9, 0)
|
|
initial_velocity_min = 3.0
|
|
initial_velocity_max = 7.0
|
|
scale_amount_min = 0.4
|
|
scale_amount_curve = SubResource("Curve_l33bb")
|
|
color_ramp = SubResource("Gradient_pnkyn")
|
|
script = ExtResource("1_kk3a7")
|