TowerGame/objects/bullet.tscn

159 lines
5.8 KiB
Plaintext

[gd_scene load_steps=25 format=3 uid="uid://cav22qho14o47"]
[ext_resource type="Script" uid="uid://ca8i18spgok4i" path="res://scripts/bullet.gd" id="1_rsjgb"]
[ext_resource type="Shader" uid="uid://jtlad4viky6j" path="res://addons/GPUTrail/shaders/trail.gdshader" id="1_ucnj8"]
[ext_resource type="Shader" uid="uid://cxd8wfunwre2a" path="res://addons/GPUTrail/shaders/trail_draw_pass.gdshader" id="2_rsjgb"]
[ext_resource type="Script" uid="uid://cdubip3a6325r" path="res://addons/GPUTrail/GPUTrail3D.gd" id="4_pt3a8"]
[ext_resource type="Texture2D" uid="uid://ct31fhxvcragr" path="res://addons/GPUTrail/defaults/curve.tres" id="4_rsjgb"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3ndsa"]
radius = 0.1
height = 0.3
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fsn5s"]
shader = ExtResource("1_ucnj8")
[sub_resource type="Gradient" id="Gradient_6sxjd"]
offsets = PackedFloat32Array(0, 0.0818966, 0.965517, 1)
colors = PackedColorArray(0.983734, 1, 0.952478, 0, 0.996515, 0.887301, 0.259986, 1, 1, 0.0352941, 0.0352941, 1, 1, 0, 0.0265193, 0)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_od3fb"]
gradient = SubResource("Gradient_6sxjd")
[sub_resource type="Curve" id="Curve_ucnj8"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.511628, 1), -1.30273, -1.30273, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_rsjgb"]
curve = SubResource("Curve_ucnj8")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_xbcx7"]
render_priority = 0
shader = ExtResource("2_rsjgb")
shader_parameter/tex = SubResource("CurveTexture_rsjgb")
shader_parameter/uv_offset = Vector2(0, 0)
shader_parameter/color_ramp = SubResource("GradientTexture1D_od3fb")
shader_parameter/curve = ExtResource("4_rsjgb")
shader_parameter/emmission_transform = Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
shader_parameter/flags = 47
[sub_resource type="QuadMesh" id="QuadMesh_ucnj8"]
material = SubResource("ShaderMaterial_xbcx7")
size = Vector2(10, 10)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xbcx7"]
albedo_color = Color(0.79229, 0.800781, 0.372387, 1)
emission_enabled = true
emission = Color(1, 1, 0, 1)
emission_energy_multiplier = 2.5
[sub_resource type="CylinderMesh" id="CylinderMesh_xbcx7"]
material = SubResource("StandardMaterial3D_xbcx7")
top_radius = 0.1
bottom_radius = 0.1
height = 0.3
radial_segments = 6
rings = 0
[sub_resource type="Curve" id="Curve_rsjgb"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -2.95938, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_4agyf"]
curve = SubResource("Curve_rsjgb")
[sub_resource type="Gradient" id="Gradient_pt3a8"]
colors = PackedColorArray(1, 0.952478, 0.959973, 1, 1, 0, 0.00575256, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_fsn5s"]
gradient = SubResource("Gradient_pt3a8")
[sub_resource type="Gradient" id="Gradient_od3fb"]
colors = PackedColorArray(1, 1, 1, 1, 0.995088, 1, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_tmmim"]
gradient = SubResource("Gradient_od3fb")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_7thed"]
particle_flag_align_y = true
direction = Vector3(1, 0.2, 0)
spread = 5.164
initial_velocity_max = 67.46
scale_max = 3.0
color = Color(0.946782, 1, 0.245254, 1)
color_ramp = SubResource("GradientTexture1D_tmmim")
color_initial_ramp = SubResource("GradientTexture1D_fsn5s")
alpha_curve = SubResource("CurveTexture_4agyf")
turbulence_enabled = true
turbulence_influence_min = 0.0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1r0jv"]
transparency = 1
vertex_color_use_as_albedo = true
albedo_color = Color(0.978998, 1, 0.633145, 1)
emission_enabled = true
emission = Color(1, 1, 1, 1)
emission_energy_multiplier = 4.1
billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_oabvv"]
material = SubResource("StandardMaterial3D_1r0jv")
size = Vector2(0.1, 0.1)
[node name="Bullet" type="RigidBody3D"]
collision_layer = 16
collision_mask = 21
continuous_cd = true
contact_monitor = true
max_contacts_reported = 1
angular_velocity = Vector3(0, 0, 6.28319)
script = ExtResource("1_rsjgb")
damage_per_speed = 2.0
min_damage = 1.0
lifetime = 5.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1.31134e-07, 1, 0, -1, 1.31134e-07, 0, 0, 0)
shape = SubResource("CapsuleShape3D_3ndsa")
[node name="GPUTrail3D" type="GPUParticles3D" parent="."]
physics_interpolation_mode = 2
transform = Transform3D(0.0233971, -0.0972244, 0, 0.0972244, 0.0233971, 0, 0, 0, 0.1, 0, 0.0926043, -0.000724986)
amount = 19
lifetime = 19.0
explosiveness = 1.0
fixed_fps = 59
process_material = SubResource("ShaderMaterial_fsn5s")
draw_pass_1 = SubResource("QuadMesh_ucnj8")
script = ExtResource("4_pt3a8")
length = 19
length_seconds = 0.322034
texture = SubResource("CurveTexture_rsjgb")
color_ramp = SubResource("GradientTexture1D_od3fb")
vertical_texture = true
use_red_as_alpha = true
billboard = true
_defaults_have_been_set = true
metadata/_custom_type_script = "uid://cdubip3a6325r"
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 6.70552e-08, 1, 0, -1, 6.70552e-08, 0, 0, 0)
cast_shadow = 0
mesh = SubResource("CylinderMesh_xbcx7")
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
max_polyphony = 2
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0)
visible = false
emitting = false
amount = 40
process_material = SubResource("ParticleProcessMaterial_7thed")
draw_pass_1 = SubResource("QuadMesh_oabvv")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]