]> purplebirdman git - frog-ninja.git/blobdiff - asset/projectile/projectile.tscn
Squashed commit of the following:
[frog-ninja.git] / asset / projectile / projectile.tscn
index 94df55417e24c55cf9c5517db18dff895549936b..878952cb5b4283282831f2d123e2077524ab8501 100644 (file)
-[gd_scene load_steps=22 format=3 uid="uid://dxmuwbdsw1cux"]
+[gd_scene load_steps=9 format=3 uid="uid://dxmuwbdsw1cux"]
 
 [ext_resource type="Script" uid="uid://dhljelflbvhq0" path="res://asset/projectile/projectile.gd" id="1_a85iw"]
+[ext_resource type="Script" uid="uid://cgj2olkiyt66o" path="res://asset/projectile/projectile_model.gd" id="2_ia5gd"]
 [ext_resource type="Script" uid="uid://bfwn8qkon3k0y" path="res://asset/character/model/hurtbox.gd" id="2_qxf0c"]
-[ext_resource type="Shader" uid="uid://cb1uqpepu0fu8" path="res://asset/projectile/projectile_outer_shader.tres" id="3_eos0u"]
-[ext_resource type="Shader" uid="uid://bl8vglcme53cn" path="res://asset/projectile/projectile_inner_shader.tres" id="4_k4v71"]
-[ext_resource type="Shader" uid="uid://w1pxn1nolx5n" path="res://asset/projectile/projectile_trail_shader.tres" id="5_4ycb3"]
+[ext_resource type="Script" uid="uid://cy7gp78g4xag4" path="res://asset/projectile/projectile_hitbox.gd" id="3_e5gjc"]
+[ext_resource type="PackedScene" uid="uid://c7wv7pk6df1wi" path="res://asset/effect/hit_effect.tscn" id="4_ia5gd"]
+[ext_resource type="PackedScene" uid="uid://eoglfqffybu2" path="res://asset/projectile/projectile_visual.tscn" id="6_xofgy"]
 
 [sub_resource type="SphereShape3D" id="SphereShape3D_a85iw"]
 radius = 0.3
 
-[sub_resource type="ShaderMaterial" id="ShaderMaterial_eos0u"]
-render_priority = 0
-shader = ExtResource("3_eos0u")
-shader_parameter/base_color = Color(2, 0.134, 0.709, 1)
-shader_parameter/rotation_speed = 0.83
-shader_parameter/speed = 1.4
-
-[sub_resource type="CylinderMesh" id="CylinderMesh_eos0u"]
-top_radius = 0.0
-height = 1.0
-cap_top = false
-cap_bottom = false
-
-[sub_resource type="ShaderMaterial" id="ShaderMaterial_4ycb3"]
-render_priority = 1
-shader = ExtResource("4_k4v71")
-shader_parameter/base_color = Color(4, 0.397, 2, 1)
-shader_parameter/fresnel_power = 4.0
-
-[sub_resource type="SphereMesh" id="SphereMesh_eos0u"]
-
-[sub_resource type="Gradient" id="Gradient_4ycb3"]
-offsets = PackedFloat32Array(0.4, 0.5, 0.6)
-colors = PackedColorArray(0.416952, 0.00912567, 0.0775737, 1, 3, 0, 2, 1, 0.416952, 0.00912567, 0.0775737, 1)
-metadata/_snap_enabled = true
-
-[sub_resource type="GradientTexture1D" id="GradientTexture1D_xofgy"]
-gradient = SubResource("Gradient_4ycb3")
-
-[sub_resource type="ShaderMaterial" id="ShaderMaterial_xofgy"]
-render_priority = 0
-shader = ExtResource("5_4ycb3")
-shader_parameter/colors = SubResource("GradientTexture1D_xofgy")
-shader_parameter/speed = 1.0
-
-[sub_resource type="PlaneMesh" id="PlaneMesh_k4v71"]
-size = Vector2(0.77, 3)
-center_offset = Vector3(0, 0, -1.5)
-
-[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4ycb3"]
-blend_mode = 1
-cull_mode = 2
-shading_mode = 0
-disable_ambient_light = true
-disable_fog = true
-vertex_color_use_as_albedo = true
-vertex_color_is_srgb = true
-
-[sub_resource type="Gradient" id="Gradient_xofgy"]
-colors = PackedColorArray(4, 1, 2, 1, 0.646777, 0, 0.300858, 1)
-
-[sub_resource type="GradientTexture1D" id="GradientTexture1D_e5gjc"]
-gradient = SubResource("Gradient_xofgy")
-use_hdr = true
-
-[sub_resource type="Curve" id="Curve_4ycb3"]
-_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_xofgy"]
-curve = SubResource("Curve_4ycb3")
-
-[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4ycb3"]
-lifetime_randomness = 0.46
-particle_flag_align_y = true
-emission_shape = 1
-emission_sphere_radius = 0.2
-direction = Vector3(0, 0, -2)
-spread = 34.315
-initial_velocity_min = 2.0
-initial_velocity_max = 10.0
-angular_velocity_min = -4.18002
-angular_velocity_max = 79.79
-gravity = Vector3(0, 0, 0)
-scale_curve = SubResource("CurveTexture_xofgy")
-color_ramp = SubResource("GradientTexture1D_e5gjc")
-hue_variation_min = -0.1
-hue_variation_max = 0.07
-
-[sub_resource type="QuadMesh" id="QuadMesh_xofgy"]
-size = Vector2(0.02, 0.06)
-orientation = 0
+[sub_resource type="SphereShape3D" id="SphereShape3D_e5gjc"]
 
 [node name="Projectile" type="Node3D"]
 script = ExtResource("1_a85iw")
 
 [node name="Model" type="Node3D" parent="."]
+script = ExtResource("2_ia5gd")
 
 [node name="Hurtbox" type="Area3D" parent="Model"]
 script = ExtResource("2_qxf0c")
@@ -105,30 +26,13 @@ metadata/_custom_type_script = "uid://bfwn8qkon3k0y"
 shape = SubResource("SphereShape3D_a85iw")
 debug_color = Color(1, 0.6, 0.701961, 0.419608)
 
-[node name="Visual" type="Node3D" parent="."]
-transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0)
-
-[node name="OuterFlame" type="MeshInstance3D" parent="Visual"]
-transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -0.0675984)
-material_override = SubResource("ShaderMaterial_eos0u")
-cast_shadow = 0
-mesh = SubResource("CylinderMesh_eos0u")
+[node name="Hitbox" type="Area3D" parent="Model"]
+script = ExtResource("3_e5gjc")
 
-[node name="InnerBall" type="MeshInstance3D" parent="Visual"]
-transform = Transform3D(0.35, 0, 0, 0, 0.35, 0, 0, 0, 0.35, 0.00562227, -0.000371352, 0.000506699)
-material_override = SubResource("ShaderMaterial_4ycb3")
-cast_shadow = 0
-mesh = SubResource("SphereMesh_eos0u")
+[node name="CollisionShape3D" type="CollisionShape3D" parent="Model/Hitbox"]
+shape = SubResource("SphereShape3D_e5gjc")
+debug_color = Color(1.03962e-05, 0.819041, 0.983756, 0.419608)
 
-[node name="Trail" type="MeshInstance3D" parent="Visual"]
-material_override = SubResource("ShaderMaterial_xofgy")
-cast_shadow = 0
-mesh = SubResource("PlaneMesh_k4v71")
+[node name="HitEffect" parent="Model/Hitbox" instance=ExtResource("4_ia5gd")]
 
-[node name="Sparks" type="GPUParticles3D" parent="Visual"]
-material_override = SubResource("StandardMaterial3D_4ycb3")
-cast_shadow = 0
-lifetime = 0.28
-explosiveness = 0.15
-process_material = SubResource("ParticleProcessMaterial_4ycb3")
-draw_pass_1 = SubResource("QuadMesh_xofgy")
+[node name="Visual" parent="Model" instance=ExtResource("6_xofgy")]