[gd_scene load_steps=18 format=3 uid="uid://wy8wqwhwr4fb"] [ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_0wuio"] [ext_resource type="Texture2D" uid="uid://dadbn306owsy3" path="res://resources/bullets/arrow/arrow.png" id="2_b2ohg"] [ext_resource type="Script" uid="uid://u5x40y0cvqq2" path="res://scripts/Contents/Bullets/Arrow.gd" id="2_qddg0"] [sub_resource type="Animation" id="Animation_qddg0"] length = 0.001 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("static:position:x") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } tracks/1/type = "bezier" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("%hitbox:position:x") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(8, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } [sub_resource type="Animation" id="Animation_oinqg"] resource_name = "destroy" length = 0.5 step = 0.1 [sub_resource type="Animation" id="Animation_ynxlt"] resource_name = "loop" loop_mode = 1 step = 0.1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 1), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [0.0, 6.28319] } [sub_resource type="Animation" id="Animation_kmogx"] resource_name = "spawn" tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("static:position:x") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 2), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 200, -0.16666667, -33.333336, 0, 0), "times": PackedFloat32Array(0, 1) } tracks/1/type = "bezier" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("%hitbox:position:x") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0, 2), "points": PackedFloat32Array(8, -0.25, 0, 0.25, 0, 208, -0.16666667, -33.333336, 0, 0), "times": PackedFloat32Array(0, 1) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_qddg0"] _data = { &"RESET": SubResource("Animation_qddg0"), &"destroy": SubResource("Animation_oinqg"), &"loop": SubResource("Animation_ynxlt"), &"spawn": SubResource("Animation_kmogx") } [sub_resource type="Curve" id="Curve_uu3a4"] _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="CurveTexture" id="CurveTexture_cawe8"] curve = SubResource("Curve_uu3a4") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_afwvr"] particle_flag_disable_z = true direction = Vector3(-1, 0, 0) spread = 0.0 initial_velocity_min = 3000.0 initial_velocity_max = 3000.0 gravity = Vector3(0, 0, 0) alpha_curve = SubResource("CurveTexture_cawe8") [sub_resource type="Curve" id="Curve_qddg0"] _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="CurveTexture" id="CurveTexture_uu3a4"] curve = SubResource("Curve_qddg0") [sub_resource type="Gradient" id="Gradient_cawe8"] colors = PackedColorArray(1, 0, 0, 1, 1, 0.8159592, 0, 1) [sub_resource type="GradientTexture1D" id="GradientTexture1D_afwvr"] gradient = SubResource("Gradient_cawe8") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_qddg0"] particle_flag_disable_z = true emission_shape = 1 emission_sphere_radius = 150.0 direction = Vector3(-1, 0, 0) spread = 20.0 initial_velocity_max = 1500.0 gravity = Vector3(0, 0, 0) scale_min = 20.0 scale_max = 60.0 color_initial_ramp = SubResource("GradientTexture1D_afwvr") alpha_curve = SubResource("CurveTexture_uu3a4") [sub_resource type="RectangleShape2D" id="RectangleShape2D_qddg0"] size = Vector2(174, 20) [node name="Arrow" instance=ExtResource("1_0wuio")] script = ExtResource("2_qddg0") displayName = "鸡毛箭" speed = 50.0 penerate = 1.0 lifeDistance = 2000.0 autoSpawnAnimation = true [node name="animator" parent="texture" index="0"] libraries = { &"": SubResource("AnimationLibrary_qddg0") } [node name="static" type="Sprite2D" parent="texture" index="1"] position = Vector2(0, -3) scale = Vector2(0.06775362, 0.06775362) texture = ExtResource("2_b2ohg") [node name="trail" type="GPUParticles2D" parent="texture/static" index="0"] unique_name_in_owner = true z_index = -1 amount = 12 texture = ExtResource("2_b2ohg") preprocess = 1.0 local_coords = true process_material = SubResource("ParticleProcessMaterial_afwvr") [node name="fire" type="GPUParticles2D" parent="texture/static" index="1"] position = Vector2(1328.3423, 44.278076) amount = 200 preprocess = 1.0 local_coords = true process_material = SubResource("ParticleProcessMaterial_qddg0") [node name="hitbox" parent="." index="1"] position = Vector2(8, 0) shape = SubResource("RectangleShape2D_qddg0") [node name="hit" type="AudioStreamPlayer2D" parent="." index="2"]