aloe effect
This commit is contained in:
parent
de33b6bc15
commit
5a6eb151ae
7 changed files with 212 additions and 70 deletions
155
scenes/particles/aloe_effect.tscn
Normal file
155
scenes/particles/aloe_effect.tscn
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://b3na62o5pu1gt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://k60ylegy845j" path="res://assets/sprites/atlases/tile_animations.png" id="1_4r1tv"]
|
||||
[ext_resource type="Script" uid="uid://5ve2i0iu5oxr" path="res://scripts/particles/MixedParticles.cs" id="1_ftbe0"]
|
||||
[ext_resource type="Texture2D" uid="uid://c68mrfs4wb81x" path="res://assets/sprites/atlases/atlas2.png" id="2_mhmlv"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_mhmlv"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Sprite2D/GPUParticles2D:emitting")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Sprite2D:self_modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_4r1tv"]
|
||||
resource_name = "main"
|
||||
length = 1.33334
|
||||
step = 0.0833333
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.166667, 0.333333, 0.728266, 0.916667),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 1, 0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Sprite2D/GPUParticles2D:emitting")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.333333),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Sprite2D:self_modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0.916667, 1.33333),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ftbe0"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_mhmlv"),
|
||||
&"main": SubResource("Animation_4r1tv")
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mhmlv"]
|
||||
atlas = ExtResource("1_4r1tv")
|
||||
region = Rect2(150, 0, 150, 50)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ftbe0"]
|
||||
atlas = ExtResource("2_mhmlv")
|
||||
region = Rect2(79, 102, 15, 15)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_ftbe0"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1e-05, 0), 0.0, 0.0, 0, 0, Vector2(0.152284, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_100so"]
|
||||
curve = SubResource("Curve_ftbe0")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_q4bj6"]
|
||||
_data = [Vector2(0, 1), 0.0, -1.0, 0, 1, Vector2(1, 0), -1.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_dajq0"]
|
||||
curve = SubResource("Curve_q4bj6")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_100so"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.0
|
||||
direction = Vector3(0, -1, 0)
|
||||
spread = 0.0
|
||||
flatness = 1.0
|
||||
initial_velocity_min = 115.79
|
||||
initial_velocity_max = 115.79
|
||||
scale_curve = SubResource("CurveTexture_dajq0")
|
||||
alpha_curve = SubResource("CurveTexture_100so")
|
||||
|
||||
[node name="AloeEffect" type="Node2D" node_paths=PackedStringArray("emitter")]
|
||||
script = ExtResource("1_ftbe0")
|
||||
emitter = NodePath("Sprite2D/GPUParticles2D")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_ftbe0")
|
||||
}
|
||||
autoplay = "main"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
z_index = -1
|
||||
z_as_relative = false
|
||||
position = Vector2(0, 22)
|
||||
texture = SubResource("AtlasTexture_mhmlv")
|
||||
offset = Vector2(0, -13.1)
|
||||
hframes = 3
|
||||
|
||||
[node name="GPUParticles2D" type="GPUParticles2D" parent="Sprite2D"]
|
||||
z_index = 50
|
||||
z_as_relative = false
|
||||
position = Vector2(0, -1)
|
||||
emitting = false
|
||||
texture = SubResource("AtlasTexture_ftbe0")
|
||||
one_shot = true
|
||||
explosiveness = 0.25
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_100so")
|
||||
Loading…
Add table
Add a link
Reference in a new issue