306 lines
11 KiB
Plaintext
306 lines
11 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://oyvhcwq60v2"]
|
|
|
|
[ext_resource type="Script" path="res://src/ingame/ingame.gd" id="1_akuuj"]
|
|
[ext_resource type="PackedScene" uid="uid://cs8c570bxh6u" path="res://src/ingame/player.tscn" id="2_w1gjc"]
|
|
[ext_resource type="PackedScene" uid="uid://bysgtksvovyur" path="res://src/ingame/sprout.tscn" id="3_2xvqq"]
|
|
[ext_resource type="Script" path="res://src/ingame/ui.gd" id="3_p340v"]
|
|
[ext_resource type="PackedScene" uid="uid://enukqx63dh2l" path="res://src/ingame/pipe.tscn" id="4_mltw3"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_l0cfx"]
|
|
size = Vector3(8, 0.2, 17)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_8v8cv"]
|
|
size = Vector3(4, 0.6, 17)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_0k58u"]
|
|
size = Vector3(2.2, 0.6, 3)
|
|
|
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_eu7fm"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_e4ynx"]
|
|
ground_bottom_color = Color(0.647059, 0.654902, 0.670588, 1)
|
|
sun_angle_max = 8.0
|
|
sun_curve = 8.81744
|
|
energy_multiplier = 1.5
|
|
|
|
[sub_resource type="Sky" id="Sky_ygvd3"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_e4ynx")
|
|
|
|
[sub_resource type="Environment" id="Environment_ijk14"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_ygvd3")
|
|
ambient_light_color = Color(0, 0.164706, 0.278431, 1)
|
|
ambient_light_energy = 2.0
|
|
|
|
[node name="Ingame" type="Node3D" node_paths=PackedStringArray("_soundtrack", "_players", "_chat_panel", "_chat_input", "_chat_history_scroll", "_chat_history", "_chat_panel_inactive", "_chat_history_inactive", "_chat_history_scroll_inactive")]
|
|
script = ExtResource("1_akuuj")
|
|
_player_scene = ExtResource("2_w1gjc")
|
|
_soundtrack = NodePath("Soundtrack")
|
|
_players = NodePath("Players")
|
|
_chat_panel = NodePath("UI/ChatPanel")
|
|
_chat_input = NodePath("UI/ChatPanel/ChatInput")
|
|
_chat_history_scroll = NodePath("UI/ChatPanel/ChatHistoryScroll")
|
|
_chat_history = NodePath("UI/ChatPanel/ChatHistoryScroll/ChatHistory")
|
|
_chat_panel_inactive = NodePath("UI/ChatPanelInactive")
|
|
_chat_history_inactive = NodePath("UI/ChatPanelInactive/ChatHistoryScroll/ChatHistory")
|
|
_chat_history_scroll_inactive = NodePath("UI/ChatPanelInactive/ChatHistoryScroll")
|
|
|
|
[node name="Soundtrack" type="AudioStreamPlayer" parent="."]
|
|
bus = &"Music"
|
|
|
|
[node name="UI" type="CanvasLayer" parent="." node_paths=PackedStringArray("_combo_timer")]
|
|
script = ExtResource("3_p340v")
|
|
_combo_timer = NodePath("ComboTimer")
|
|
|
|
[node name="ChatPanel" type="Panel" parent="UI"]
|
|
visible = false
|
|
self_modulate = Color(1, 1, 1, 0.498039)
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -312.0
|
|
offset_top = 12.0
|
|
offset_bottom = 172.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ChatHistoryScroll" type="ScrollContainer" parent="UI/ChatPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = -8.0
|
|
offset_bottom = -48.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ChatHistory" type="VBoxContainer" parent="UI/ChatPanel/ChatHistoryScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="ChatInput" type="LineEdit" parent="UI/ChatPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 120.0
|
|
offset_right = -72.0
|
|
offset_bottom = -9.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
placeholder_text = "say something"
|
|
max_length = 300
|
|
context_menu_enabled = false
|
|
clear_button_enabled = true
|
|
middle_mouse_paste_enabled = false
|
|
|
|
[node name="ChatSendButton" type="Button" parent="UI/ChatPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 248.0
|
|
offset_top = 120.0
|
|
offset_right = -8.0
|
|
offset_bottom = -9.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "send"
|
|
|
|
[node name="ChatPanelInactive" type="Panel" parent="UI"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -312.0
|
|
offset_top = 12.0
|
|
offset_bottom = 172.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ChatHistoryScroll" type="ScrollContainer" parent="UI/ChatPanelInactive"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = -8.0
|
|
offset_bottom = -9.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
vertical_scroll_mode = 3
|
|
|
|
[node name="ChatHistory" type="VBoxContainer" parent="UI/ChatPanelInactive/ChatHistoryScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Combo" type="Label" parent="UI"]
|
|
visible = false
|
|
self_modulate = Color(0.534784, 0.97046, 3.46541e-06, 1)
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -11.5
|
|
offset_right = 20.0
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
text = "+5!"
|
|
|
|
[node name="ComboTimer" type="Timer" parent="UI"]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.45058e-09, 0)
|
|
collision_mask = 0
|
|
size = Vector3(8, 0.2, 17)
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="CSGBox3D"]
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CSGBox3D/StaticBody3D"]
|
|
shape = SubResource("BoxShape3D_l0cfx")
|
|
|
|
[node name="GPUParticlesCollisionBox3D" type="GPUParticlesCollisionBox3D" parent="CSGBox3D"]
|
|
size = Vector3(8, 0.2, 17)
|
|
|
|
[node name="CSGBox3D2" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03442, 0.2, 0)
|
|
collision_mask = 0
|
|
size = Vector3(4, 0.6, 17)
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="CSGBox3D2"]
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CSGBox3D2/StaticBody3D"]
|
|
shape = SubResource("BoxShape3D_8v8cv")
|
|
|
|
[node name="GPUParticlesCollisionBox3D" type="GPUParticlesCollisionBox3D" parent="CSGBox3D2"]
|
|
size = Vector3(4, 0.6, 17)
|
|
|
|
[node name="CSGBox3D3" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.23442, 0.8, -2.4)
|
|
collision_mask = 0
|
|
size = Vector3(2.2, 0.6, 3)
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="CSGBox3D3"]
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CSGBox3D3/StaticBody3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.76837e-07, 0, 0)
|
|
shape = SubResource("BoxShape3D_0k58u")
|
|
|
|
[node name="GPUParticlesCollisionBox3D" type="GPUParticlesCollisionBox3D" parent="CSGBox3D3"]
|
|
size = Vector3(2.2, 0.6, 3)
|
|
|
|
[node name="Void" type="StaticBody3D" parent="." groups=["voids"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -8, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Void"]
|
|
shape = SubResource("WorldBoundaryShape3D_eu7fm")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_ijk14")
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.943957, 0.3178, 0.0891561, 0, -0.270113, 0.962829, 0.33007, -0.908868, -0.254975, 0, 0, 0)
|
|
light_energy = 2.0
|
|
|
|
[node name="PlayerSpawner" type="MultiplayerSpawner" parent="."]
|
|
_spawnable_scenes = PackedStringArray("res://src/ingame/player.tscn")
|
|
spawn_path = NodePath("../Players")
|
|
|
|
[node name="Players" type="Node3D" parent="."]
|
|
|
|
[node name="Plants" type="Node3D" parent="."]
|
|
|
|
[node name="Sprout" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00401986, 0.396167, -3.22022)
|
|
|
|
[node name="Sprout2" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.60402, 0.396167, -3.22022)
|
|
|
|
[node name="Sprout3" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.59598, 0.396167, -3.22022)
|
|
|
|
[node name="Sprout4" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00401986, 0.396167, 2.77978)
|
|
|
|
[node name="Sprout5" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.60402, 0.396167, 2.77978)
|
|
|
|
[node name="Sprout6" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.59598, 0.396167, 2.77978)
|
|
|
|
[node name="Sprout19" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.27774, 0.866392, 8.06555)
|
|
|
|
[node name="Sprout7" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00401986, 0.396167, 3.37978)
|
|
|
|
[node name="Sprout8" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.60402, 0.396167, 3.37978)
|
|
|
|
[node name="Sprout9" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.59598, 0.396167, 3.37978)
|
|
|
|
[node name="Sprout10" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.99598, 1.39617, -2.22022)
|
|
|
|
[node name="Sprout11" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.39598, 1.39617, -2.22022)
|
|
|
|
[node name="Sprout12" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.59598, 1.39617, -2.22022)
|
|
|
|
[node name="Sprout16" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.99598, 1.39617, -2.82022)
|
|
|
|
[node name="Sprout17" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.39598, 1.39617, -2.82022)
|
|
|
|
[node name="Sprout18" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.59598, 1.39617, -2.82022)
|
|
|
|
[node name="Sprout13" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.99598, 1.39617, -1.62022)
|
|
|
|
[node name="Sprout14" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.39598, 1.39617, -1.62022)
|
|
|
|
[node name="Sprout15" parent="Plants" instance=ExtResource("3_2xvqq")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.59598, 1.39617, -1.62022)
|
|
|
|
[node name="Pipe" parent="." instance=ExtResource("4_mltw3")]
|
|
transform = Transform3D(0.999929, -0.0119378, 0, -0.0119378, -0.999929, 8.74228e-08, -1.04363e-09, -8.74165e-08, -1, -7, 6.79123, 7)
|
|
|
|
[node name="SpawnPoints" type="Node3D" parent="."]
|
|
|
|
[node name="SpawnPoint" type="Marker3D" parent="SpawnPoints" groups=["spawn_points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
[node name="SpawnPoint2" type="Marker3D" parent="SpawnPoints" groups=["spawn_points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.15702, 1.04855, 5.88574)
|
|
|
|
[node name="SpawnPoint3" type="Marker3D" parent="SpawnPoints" groups=["spawn_points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.43229, 0.627689, 7.20138)
|
|
|
|
[connection signal="text_submitted" from="UI/ChatPanel/ChatInput" to="." method="_on_chat_message_submitted"]
|
|
[connection signal="pressed" from="UI/ChatPanel/ChatSendButton" to="." method="_on_chat_message_submitted"]
|
|
[connection signal="timeout" from="UI/ComboTimer" to="UI" method="_on_combo_timer_timeout"]
|