96 lines
3.5 KiB
Plaintext
96 lines
3.5 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://p2vvd6l1rose"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/CameraControl.gd" id="1_tck22"]
|
|
[ext_resource type="Script" path="res://scripts/BoidsManager.gd" id="1_v84o5"]
|
|
[ext_resource type="PackedScene" uid="uid://bi3r8vqt5ykrt" path="res://scenes/Boid.tscn" id="2_did81"]
|
|
[ext_resource type="AudioStream" uid="uid://bqu3h3gaj6eqr" path="res://audio/263786__steaq__seagull-single-call.ogg" id="3_4pkn6"]
|
|
[ext_resource type="AudioStream" uid="uid://cqetbevo485vt" path="res://audio/468245__christianand__1_1_gaviota.wav" id="4_4rbpg"]
|
|
[ext_resource type="Material" uid="uid://bstu27rlas6p3" path="res://materials/Floor.tres" id="6_7a1uq"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_d6oc0"]
|
|
sky_top_color = Color(1, 1, 1, 1)
|
|
sky_horizon_color = Color(0.835294, 0.839216, 0.847059, 1)
|
|
ground_bottom_color = Color(0.898039, 0.898039, 0.898039, 1)
|
|
ground_horizon_color = Color(0.835355, 0.839277, 0.847089, 1)
|
|
|
|
[sub_resource type="Sky" id="Sky_ggc3l"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_d6oc0")
|
|
|
|
[sub_resource type="Environment" id="Environment_ptyca"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_ggc3l")
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_7ll4w"]
|
|
size = Vector3(5, 5, 5)
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_usmhe"]
|
|
size = Vector2(25, 25)
|
|
|
|
[node name="Node3D" type="Node3D"]
|
|
|
|
[node name="Pan" type="Node3D" parent="." node_paths=PackedStringArray("events_label", "drag_label")]
|
|
script = ExtResource("1_tck22")
|
|
events_label = NodePath("../Panel/VBoxContainer/Count")
|
|
drag_label = NodePath("../Panel/VBoxContainer/Drag")
|
|
|
|
[node name="Tilt" type="Node3D" parent="Pan"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.996195, 0.0871557, 0, -0.0871557, 0.996195, 0, 0, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Pan/Tilt"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 2, 0)
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_ptyca")
|
|
|
|
[node name="Boids" type="Node3D" parent="." node_paths=PackedStringArray("resources", "target")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
|
script = ExtResource("1_v84o5")
|
|
resources = NodePath("../ResourcePreloader")
|
|
start_count = 20
|
|
spawn_volume = Vector3(10, 5, 10)
|
|
protected_range = 2.0
|
|
visual_range = 3.0
|
|
avoid_factor = 1.0
|
|
matching_factor = 0.02
|
|
min_speed = 5.0
|
|
max_speed = 10.0
|
|
shape = SubResource("BoxShape3D_7ll4w")
|
|
enable_wind = true
|
|
wind_velocity = Vector3(-2, 0, 0)
|
|
target = NodePath("../Magnet")
|
|
enable_perching = true
|
|
|
|
[node name="ResourcePreloader" type="ResourcePreloader" parent="."]
|
|
resources = [PackedStringArray("Boid", "Seagull", "SeagullTwo"), [ExtResource("2_did81"), ExtResource("3_4pkn6"), ExtResource("4_4rbpg")]]
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
visible = false
|
|
offset_right = 301.0
|
|
offset_bottom = 157.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Count" type="Label" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Touch events:"
|
|
|
|
[node name="Drag" type="Label" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Touch events:"
|
|
|
|
[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
|
|
visible = false
|
|
material_override = ExtResource("6_7a1uq")
|
|
mesh = SubResource("PlaneMesh_usmhe")
|
|
|
|
[node name="Magnet" type="Node3D" parent="."]
|