cirnogodot/Scenes/Weapons/Bullets/Gas_Bullet.tscn

45 lines
1.6 KiB
Text
Raw Normal View History

2025-03-17 18:12:30 +01:00
[gd_scene load_steps=6 format=3 uid="uid://bkndk7ffavhdk"]
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_0t8os"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_w50av"]
radius = 2.0
height = 38.68
[sub_resource type="Gradient" id="Gradient_0t8os"]
colors = PackedColorArray(0.815686, 0, 0, 1, 1, 0.478431, 0.105882, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_xbs0q"]
gradient = SubResource("Gradient_0t8os")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ai62n"]
particle_flag_disable_z = true
gravity = Vector3(0, 98, 0)
radial_accel_min = -2.23517e-06
radial_accel_max = 93.14
tangential_accel_min = -19.42
tangential_accel_max = 14.86
color_ramp = SubResource("GradientTexture1D_xbs0q")
[node name="Bullet" type="Area2D" groups=["bullets"]]
collision_layer = 136
collision_mask = 87
script = ExtResource("1_0t8os")
Speed = 0.0
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 15.885)
shape = SubResource("CapsuleShape2D_w50av")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
amount = 16
lifetime = 0.64
trail_lifetime = 1.0
process_material = SubResource("ParticleProcessMaterial_ai62n")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]