Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / bullet / BulletDisappear0001.tscn
[gd_scene load_steps=13 format=3 uid="uid://c6mmikwchwt"]

[ext_resource type="Texture2D" uid="uid://4be6mi1egtiy" path="res://resource/sprite/explode/Explode_circle0003.png" id="1_nag6e"]
[ext_resource type="Script" path="res://src/game/effects/AutoDestroySprite.cs" id="2_db7di"]
[ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/sprite/common/Smoke.png" id="3_2w51u"]

[sub_resource type="AtlasTexture" id="AtlasTexture_tscb3"]
atlas = ExtResource("1_nag6e")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_l2nv6"]
atlas = ExtResource("1_nag6e")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_5133m"]
atlas = ExtResource("1_nag6e")
region = Rect2(32, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_41eg5"]
atlas = ExtResource("1_nag6e")
region = Rect2(48, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_ub3cw"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tscb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l2nv6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5133m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_41eg5")
}, {
"duration": 1.0,
"texture": null
}],
"loop": false,
"name": &"default",
"speed": 13.0
}]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_4bd3q"]
particles_animation = true
particles_anim_h_frames = 3
particles_anim_v_frames = 1
particles_anim_loop = false

[sub_resource type="Curve" id="Curve_86ye5"]
_data = [Vector2(0, 0.736364), 0.0, 0.0, 0, 0, Vector2(0.396825, 1), 0.0, 0.0, 0, 0, Vector2(0.990476, 0), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_j77i6"]
curve = SubResource("Curve_86ye5")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_r1yeu"]
lifetime_randomness = 0.3
particle_flag_disable_z = true
angle_max = 360.0
spread = 180.0
initial_velocity_min = 45.0
initial_velocity_max = 65.0
gravity = Vector3(0, 0, 0)
scale_min = 0.3
scale_max = 0.6
scale_curve = SubResource("CurveTexture_j77i6")
color = Color(0.909804, 0.909804, 0.909804, 0.380392)
anim_offset_max = 1.0

[node name="BulletDisappear0002" type="AnimatedSprite2D" node_paths=PackedStringArray("Particles2D")]
modulate = Color(1, 1, 1, 0.784314)
z_index = -4
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_ub3cw")
script = ExtResource("2_db7di")
DelayTime = 0.5
Particles2D = [NodePath("GPUParticles2D")]

[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
material = SubResource("CanvasItemMaterial_4bd3q")
emitting = false
process_material = SubResource("ParticleProcessMaterial_r1yeu")
texture = ExtResource("3_2w51u")
lifetime = 0.3
one_shot = true
explosiveness = 0.9
fixed_fps = 20