add targets and win to pipe scene

This commit is contained in:
hiina 2025-02-16 14:50:18 -07:00
parent 2d7e525580
commit 0fd35136c2
11 changed files with 154 additions and 65 deletions

View file

@ -5,5 +5,3 @@ resource_name = "Emission"
cull_mode = 2
albedo_color = Color(0.906332, 0.836398, 0.446766, 1)
roughness = 0.5
emission_enabled = true
emission = Color(0.741793, 0.548567, 0.129865, 1)

View file

@ -4,10 +4,4 @@
resource_name = "Glass.001"
transparency = 4
cull_mode = 2
albedo_color = Color(1, 1, 1, 0.144)
metallic = 1.0
metallic_specular = 0.55
roughness = 0.33
clearcoat_enabled = true
anisotropy = 0.7
refraction_scale = 0.37

View file

@ -1836,11 +1836,11 @@ _subresources={
"materials": {
"Emission": {
"use_external/enabled": true,
"use_external/path": "res://assets/Emission.tres"
"use_external/path": "res://assets/Materials/Emission.tres"
},
"Glass.001": {
"use_external/enabled": true,
"use_external/path": "res://assets/Glass.001.tres"
"use_external/path": "res://assets/Materials/Glass.001.tres"
}
}
}

View file

@ -3,3 +3,9 @@
[ext_resource type="PackedScene" uid="uid://ewhlayr70v2l" path="res://assets/Models/Star bulb.glb" id="1_onaud"]
[node name="Star bulb" instance=ExtResource("1_onaud")]
[node name="Star Bulb" parent="." index="0"]
layers = 4
[node name="Star" parent="Star Bulb" index="0"]
layers = 4

View file

@ -45,3 +45,9 @@ layout_mode = 2
text = "Valentine"
script = ExtResource("2_4d80g")
scene_path = "res://scenes/valentine_scene/valentine_scene.tscn"
[node name="SceneSelect5" type="Button" parent="MarginContainer/VBoxContainer" groups=["scene_button"]]
layout_mode = 2
text = "Pipes"
script = ExtResource("2_4d80g")
scene_path = "res://scenes/pipes_scene/pipes_scene.tscn"

View file

@ -34,5 +34,5 @@ turbulence_noise_scale = 6.228
turbulence_influence_min = 0.01
turbulence_influence_max = 0.01
collision_mode = 1
collision_friction = 0.06
collision_bounce = 1.0
collision_friction = 1.0
collision_bounce = 0.0

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=61 format=4 uid="uid://druuigc8sdj04"]
[gd_scene load_steps=66 format=4 uid="uid://druuigc8sdj04"]
[ext_resource type="Script" path="res://scenes/base_game_scene.gd" id="1_0v4tm"]
[ext_resource type="PackedScene" uid="uid://7uc6tf2tvn1k" path="res://scenes/xr_origin_3d.tscn" id="2_fv202"]
@ -11,10 +11,14 @@
[ext_resource type="PackedScene" uid="uid://rsrnbs08nv1n" path="res://scenes/collisions/proxy_collision_detector.tscn" id="9_y6a64"]
[ext_resource type="Material" uid="uid://db6gxv4sns4ex" path="res://scenes/pipes_scene/pipes_particle_process_material.tres" id="10_hnmyi"]
[ext_resource type="Material" uid="uid://1gk8yvunqk7d" path="res://scenes/pipes_scene/pipes_particle_standard_material_3d.tres" id="11_6cmy2"]
[ext_resource type="PackedScene" uid="uid://b47wuj6l7jcer" path="res://scenes/star_bulb_target.tscn" id="12_6aquu"]
[ext_resource type="AudioStream" uid="uid://cv0f1tu5pac60" path="res://assets/Sounds/02 midpiano.ogg" id="13_brj32"]
[ext_resource type="AudioStream" uid="uid://dnwh2iqwi86ku" path="res://assets/Sounds/04 bass.ogg" id="14_jkkeu"]
[ext_resource type="PackedScene" uid="uid://bifpsyvpcem3a" path="res://scenes/manipulator/manipulator.tscn" id="15_n6d1p"]
[ext_resource type="PackedScene" uid="uid://ccmx5v2601k8q" path="res://scenes/manipulator/visual_attractor_sphere.tscn" id="16_xr1mm"]
[ext_resource type="PackedScene" uid="uid://cibwlfqvmirgb" path="res://scenes/ambient_particles.tscn" id="17_3mk35"]
[ext_resource type="PackedScene" uid="uid://g4esih4vcves" path="res://scenes/level_select_3d.tscn" id="18_0v1cu"]
[ext_resource type="PackedScene" uid="uid://bu0fu4uiwyu65" path="res://scenes/win_particles.tscn" id="19_7kmha"]
[ext_resource type="Texture2D" uid="uid://c6chhj2jhli1w" path="res://assets/Models/Pipes_Pipe_Base_color.png" id="20_v8cmk"]
[sub_resource type="BoxShape3D" id="BoxShape3D_gj4t1"]
@ -42,6 +46,9 @@ cap_top = false
cap_bottom = false
curve = SubResource("Curve_y0yng")
[sub_resource type="BoxShape3D" id="BoxShape3D_6lxj2"]
size = Vector3(0.7, 0.7, 0.7)
[sub_resource type="PrismMesh" id="PrismMesh_be80n"]
size = Vector3(0.2, 0.2, 0.2)
@ -293,22 +300,22 @@ length = 0.0416667
resource_name = "Pipe ConnectorAction"
length = 0.0416667
[sub_resource type="Animation" id="Animation_qecqh"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction"
length = 0.0416667
[sub_resource type="Animation" id="Animation_rm8rm"]
resource_name = "Pipe Segment 90|Pipe Segment 90|Pipe SegmentAction"
length = 0.0416667
[sub_resource type="Animation" id="Animation_m8umv"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction_007"
[sub_resource type="Animation" id="Animation_qecqh"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction"
length = 0.0416667
[sub_resource type="Animation" id="Animation_3ymv2"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction_003"
length = 0.0416667
[sub_resource type="Animation" id="Animation_m8umv"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction_007"
length = 0.0416667
[sub_resource type="Animation" id="Animation_o20v3"]
resource_name = "Pipe Segment|Pipe Segment|Pipe SegmentAction_011"
length = 0.0416667
@ -601,13 +608,24 @@ mesh = SubResource("PlaneMesh_gsjte")
[node name="SpotLight3D" type="SpotLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.629158, 0.777278, 0, -0.777278, 0.629158, 0, 4.06392, 0.237672)
light_color = Color(0.917249, 0.922687, 0.656935, 1)
light_energy = 0.701
shadow_enabled = true
spot_range = 40.0
spot_attenuation = 0.32
spot_angle = 78.21
[node name="SpotLight3D2" type="SpotLight3D" parent="."]
transform = Transform3D(0.626794, 0.56816, 0.53322, 0, -0.684331, 0.729172, 0.779185, -0.457041, -0.428934, 6.46616, 3.82185, -10.3835)
light_color = Color(0.917249, 0.922687, 0.656935, 1)
light_energy = 0.701
shadow_enabled = true
spot_range = 40.0
spot_attenuation = 0.32
spot_angle = 56.52
[node name="ProxyCollisionDetector" parent="." instance=ExtResource("9_y6a64")]
source_particles_paths = Array[NodePath]([NodePath("../GPUParticles3D"), NodePath("")])
source_particles_paths = Array[NodePath]([NodePath("../GPUParticles3D")])
[node name="GPUParticlesCollisionSDF3D" type="GPUParticlesCollisionSDF3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0781396, 1.59386, -3.7673)
@ -619,8 +637,8 @@ texture = ExtResource("9_ja540")
transform = Transform3D(0.256593, -0.96652, 0, 0.96652, 0.256593, 0, 0, 0, 1, -2.50452, 0.430543, -2.03293)
cast_shadow = 0
gi_mode = 2
amount = 500
lifetime = 6.75
amount = 1000
lifetime = 3.5
randomness = 0.18
visibility_aabb = AABB(-100, -100, -100, 200, 200, 200)
transform_align = 2
@ -629,6 +647,39 @@ trail_lifetime = 0.5
process_material = ExtResource("10_hnmyi")
draw_pass_1 = SubResource("TubeTrailMesh_a8pjl")
[node name="Target1" parent="." instance=ExtResource("12_6aquu")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.28969, 2.86463, -2.60408)
[node name="CollisionShape3D" parent="Target1" index="0"]
shape = SubResource("BoxShape3D_6lxj2")
[node name="AudioStreamPlayer3D" parent="Target1" index="2"]
stream = ExtResource("13_brj32")
[node name="Star bulb" parent="Target1" index="3"]
transform = Transform3D(1.1497, 0, 0, 0, 1.1497, 0, 0, 0, 1.1497, 0, -0.542325, 0)
[node name="Target3" parent="." instance=ExtResource("12_6aquu")]
transform = Transform3D(1, 0, 0, 0, 0.948429, -0.31699, 0, 0.31699, 0.948429, -2.72979, 1.56594, -3.19192)
[node name="CollisionShape3D" parent="Target3" index="0"]
shape = SubResource("BoxShape3D_6lxj2")
[node name="AudioStreamPlayer3D" parent="Target3" index="2"]
stream = ExtResource("14_jkkeu")
[node name="Star bulb" parent="Target3" index="3"]
transform = Transform3D(1.1497, 0, 0, 0, 1.1497, 0, 0, 0, 1.1497, 0, -0.542325, 0)
[node name="Target2" parent="." instance=ExtResource("12_6aquu")]
transform = Transform3D(0.930059, 0.246959, 0.272033, 0, 0.740406, -0.67216, -0.36741, 0.625148, 0.688621, 0.54191, 2.70348, -4.09465)
[node name="CollisionShape3D" parent="Target2" index="0"]
shape = SubResource("BoxShape3D_6lxj2")
[node name="Star bulb" parent="Target2" index="3"]
transform = Transform3D(1.1497, 0, 0, 0, 1.1497, 0, 0, 0, 1.1497, 0, -0.542325, 0)
[node name="Manipulator0" parent="." groups=["manipulators"] instance=ExtResource("15_n6d1p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.725302, 1.74339, -3.19166)
@ -689,6 +740,9 @@ surface_material_override/0 = SubResource("StandardMaterial3D_hyt1m")
[node name="LevelSelect3D" parent="." instance=ExtResource("18_0v1cu")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.7136, 2.92117)
[node name="WinParticles" parent="." instance=ExtResource("19_7kmha")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, -2)
[node name="Pipes" type="Node3D" parent="."]
transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, -6.23829, 2.38419e-07, -3.4459)
@ -718,7 +772,7 @@ mesh = SubResource("ArrayMesh_8mci8")
skeleton = NodePath("")
[node name="Pipe Segment Split" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(0.872904, 0.309026, -0.377548, -0.405537, 0.88979, -0.209316, 0.271254, 0.335823, 0.902022, 1.05617, -0.238407, -0.0304171)
transform = Transform3D(0.93872, 0.114763, -0.325016, -0.212666, 0.934908, -0.284113, 0.271254, 0.335823, 0.902022, 1.14228, -0.249753, -0.219927)
mesh = SubResource("ArrayMesh_coxub")
skeleton = NodePath("")
@ -732,8 +786,13 @@ transform = Transform3D(2.2178e-08, -0.507372, -1.30842, 0.947061, -0.965549, 0.
mesh = SubResource("ArrayMesh_bwvdg")
skeleton = NodePath("")
[node name="Pipe Segment 92" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(-1.89536, 0.428527, -1.24798, 1.2029, 1.4589, -1.32594, 0.542334, -1.73824, -1.42053, 1.5694, 0.359596, -0.642386)
mesh = SubResource("ArrayMesh_bwvdg")
skeleton = NodePath("")
[node name="Light Segment2" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(0.877312, 0.300938, -0.373846, -0.396401, 0.893503, -0.210992, 0.270537, 0.333299, 0.903173, 1.21338, 0.225851, 0.141009)
transform = Transform3D(0.941106, 0.106074, -0.321044, -0.202807, 0.936835, -0.284972, 0.270537, 0.333299, 0.903173, 1.19822, 0.237197, -0.0485005)
mesh = SubResource("ArrayMesh_ywi2y")
skeleton = NodePath("")
@ -767,6 +826,21 @@ transform = Transform3D(-7.8288e-08, 1.79102, -1.44456, 6.31434e-08, -1.44456, -
mesh = SubResource("ArrayMesh_n7qi3")
skeleton = NodePath("")
[node name="Pipe Connector3" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(-0.736475, 0.490628, -2.124, -1.3374, -1.87214, 0.0312782, -1.72148, 1.24454, 0.884383, 1.17477, 1.67749, -0.897024)
mesh = SubResource("ArrayMesh_cgaoc")
skeleton = NodePath("")
[node name="Pipe Segment5" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(2.124, -0.490628, 0.736475, -0.0312782, 1.87214, 1.3374, -0.884383, -1.24454, 1.72148, 1.43486, 0.66806, -0.224775)
mesh = SubResource("ArrayMesh_eijwi")
skeleton = NodePath("")
[node name="Pipe Connector4" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(-0.736475, 0.490628, -2.124, -1.3374, -1.87214, 0.0312782, -1.72148, 1.24454, 0.884383, 1.70519, -0.346442, 0.448423)
mesh = SubResource("ArrayMesh_n7qi3")
skeleton = NodePath("")
[node name="Pipe Segment Split2" type="MeshInstance3D" parent="Pipes"]
transform = Transform3D(0.99286, 0.0163467, 0, -0.00918446, 1.76711, 0, 0, 0, 1, 2.50542, -0.307471, 0.289026)
mesh = SubResource("ArrayMesh_iwan1")
@ -776,3 +850,9 @@ skeleton = NodePath("")
transform = Transform3D(0.999991, 0, 0.00422368, 0, 1, 0, -0.00422368, 0, 0.999991, 2.50567, 0.688491, 0.287128)
mesh = SubResource("ArrayMesh_ywi2y")
skeleton = NodePath("")
[connection signal="puzzle_completed" from="." to="WinParticles" method="_on_puzzle_completed"]
[editable path="Target1"]
[editable path="Target3"]
[editable path="Target2"]

View file

@ -0,0 +1,43 @@
[gd_scene load_steps=8 format=3 uid="uid://b47wuj6l7jcer"]
[ext_resource type="Script" path="res://scenes/target.gd" id="1_yma8k"]
[ext_resource type="AudioStream" uid="uid://cqb1bo72232vs" path="res://assets/Sounds/03 highpiano.ogg" id="2_pbmr6"]
[ext_resource type="PackedScene" uid="uid://bgh4fmqrhb0cs" path="res://assets/star_bulb.tscn" id="3_mq1le"]
[ext_resource type="Script" path="res://assets/star_bulb_target.gd" id="4_1tttv"]
[sub_resource type="BoxShape3D" id="BoxShape3D_2pv4i"]
[sub_resource type="BoxMesh" id="BoxMesh_tp0p7"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mjtav"]
transparency = 1
albedo_color = Color(1, 1, 1, 0.3)
emission_enabled = true
emission = Color(1, 1, 1, 1)
emission_energy_multiplier = 0.61
rim = 0.38
refraction_scale = 0.88
[node name="Target1" type="StaticBody3D" groups=["targets"]]
script = ExtResource("1_yma8k")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_2pv4i")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
visible = false
layers = 4
mesh = SubResource("BoxMesh_tp0p7")
skeleton = NodePath("../..")
surface_material_override/0 = SubResource("StandardMaterial3D_mjtav")
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("2_pbmr6")
volume_db = -80.0
autoplay = true
[node name="Star bulb" parent="." instance=ExtResource("3_mq1le")]
transform = Transform3D(1.3, 0, 0, 0, 1.3, 0, 0, 0, 1.3, 0, -0.542325, 0)
script = ExtResource("4_1tttv")
[connection signal="occupancy_changed" from="." to="Star bulb" method="_on_target_1_occupancy_changed"]

View file

@ -1,13 +1,10 @@
[gd_scene load_steps=25 format=3 uid="uid://dqbxp72mjmbc"]
[gd_scene load_steps=19 format=3 uid="uid://dqbxp72mjmbc"]
[ext_resource type="PackedScene" uid="uid://1rwj4eq63xgb" path="res://scenes/tutorial_scenes/tutorial_scene_base.tscn" id="1_lkcbi"]
[ext_resource type="VoxelGIData" uid="uid://nuw3xyd4kkpq" path="res://scenes/tutorial_scenes/tutorial_scene_1.VoxelGI_data.res" id="2_4e4av"]
[ext_resource type="PackedScene" uid="uid://bifpsyvpcem3a" path="res://scenes/manipulator/manipulator.tscn" id="3_pgrk8"]
[ext_resource type="PackedScene" uid="uid://ccmx5v2601k8q" path="res://scenes/manipulator/visual_attractor_sphere.tscn" id="4_05xwa"]
[ext_resource type="Script" path="res://scenes/target.gd" id="5_46vbo"]
[ext_resource type="AudioStream" uid="uid://cqb1bo72232vs" path="res://assets/Sounds/03 highpiano.ogg" id="6_bxnqe"]
[ext_resource type="PackedScene" uid="uid://bgh4fmqrhb0cs" path="res://assets/star_bulb.tscn" id="7_aq638"]
[ext_resource type="Script" path="res://assets/star_bulb_target.gd" id="8_ipvvg"]
[ext_resource type="PackedScene" uid="uid://b47wuj6l7jcer" path="res://scenes/star_bulb_target.tscn" id="5_g0pjq"]
[ext_resource type="PackedScene" uid="uid://bu0fu4uiwyu65" path="res://scenes/win_particles.tscn" id="9_31knv"]
[sub_resource type="Gradient" id="Gradient_0ygfi"]
@ -96,19 +93,6 @@ size = Vector3(0.2, 0.2, 0.2)
emission_enabled = true
emission = Color(0.208505, 0.70691, 0.626474, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_2pv4i"]
[sub_resource type="BoxMesh" id="BoxMesh_tp0p7"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mjtav"]
transparency = 1
albedo_color = Color(1, 1, 1, 0.3)
emission_enabled = true
emission = Color(1, 1, 1, 1)
emission_energy_multiplier = 0.61
rim = 0.38
refraction_scale = 0.88
[node name="TutorialSceneBase" instance=ExtResource("1_lkcbi")]
[node name="VoxelGI" parent="." index="4"]
@ -157,31 +141,9 @@ mesh = SubResource("PrismMesh_f1dje")
skeleton = NodePath("")
surface_material_override/0 = SubResource("StandardMaterial3D_vyhi3")
[node name="Target1" type="StaticBody3D" parent="." index="18" groups=["targets"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.91143, 3.59885, -3.13788)
script = ExtResource("5_46vbo")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Target1" index="0"]
shape = SubResource("BoxShape3D_2pv4i")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Target1" index="1"]
visible = false
layers = 4
mesh = SubResource("BoxMesh_tp0p7")
skeleton = NodePath("../..")
surface_material_override/0 = SubResource("StandardMaterial3D_mjtav")
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="Target1" index="2"]
stream = ExtResource("6_bxnqe")
volume_db = -80.0
autoplay = true
[node name="Star bulb" parent="Target1" index="3" instance=ExtResource("7_aq638")]
transform = Transform3D(1.3, 0, 0, 0, 1.3, 0, 0, 0, 1.3, 0, -0.542325, 0)
script = ExtResource("8_ipvvg")
[node name="Target1" parent="." index="18" instance=ExtResource("5_g0pjq")]
[node name="WinParticles" parent="." index="20" instance=ExtResource("9_31knv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, -3)
[connection signal="puzzle_completed" from="." to="WinParticles" method="_on_puzzle_completed"]
[connection signal="occupancy_changed" from="Target1" to="Target1/Star bulb" method="_on_target_1_occupancy_changed"]