TowerGame/node_3d.tscn

143 lines
75 KiB
Plaintext
Raw Normal View History

2025-04-20 20:55:30 +01:00
[gd_scene load_steps=18 format=3 uid="uid://bwftban1ppo17"]
[ext_resource type="Script" uid="uid://y8qfdplqsijx" path="res://grid_map_test.gd" id="1_noarx"]
[ext_resource type="Script" uid="uid://ghsl3wni57q1" path="res://pathfinding_grid.gd" id="2_noarx"]
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_4xowi"]
[sub_resource type="Sky" id="Sky_a202f"]
sky_material = SubResource("PhysicalSkyMaterial_4xowi")
[sub_resource type="Environment" id="Environment_noarx"]
background_mode = 2
sky = SubResource("Sky_a202f")
tonemap_mode = 2
ssr_enabled = true
ssr_fade_in = 0.060919
ssr_fade_out = 0.0941018
ssao_enabled = true
ssao_intensity = 0.65
glow_enabled = true
volumetric_fog_density = 1.0
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_a0tk4"]
[sub_resource type="BoxMesh" id="BoxMesh_a202f"]
size = Vector3(2, 1, 2)
[sub_resource type="NavigationMesh" id="NavigationMesh_qra7f"]
vertices = PackedVector3Array(-0.75, 1, -0.75, -0.75, 1, 0.75, 0.75, 1, 0.75, 0.75, 1, -0.75)
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
agent_radius = 0.2
region_min_size = 1.0
[sub_resource type="Image" id="Image_noarx"]
data = {
"data": PackedByteArray(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
"format": "RGBA8",
"height": 64,
"mipmaps": false,
"width": 64
}
[sub_resource type="ImageTexture" id="ImageTexture_a0tk4"]
image = SubResource("Image_noarx")
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_7h0kd"]
data = PackedVector3Array(-1, 0.5, 1, 1, 0.5, 1, -1, -0.5, 1, 1, 0.5, 1, 1, -0.5, 1, -1, -0.5, 1, 1, 0.5, -1, -1, 0.5, -1, 1, -0.5, -1, -1, 0.5, -1, -1, -0.5, -1, 1, -0.5, -1, 1, 0.5, 1, 1, 0.5, -1, 1, -0.5, 1, 1, 0.5, -1, 1, -0.5, -1, 1, -0.5, 1, -1, 0.5, -1, -1, 0.5, 1, -1, -0.5, -1, -1, 0.5, 1, -1, -0.5, 1, -1, -0.5, -1, 1, 0.5, 1, -1, 0.5, 1, 1, 0.5, -1, -1, 0.5, 1, -1, 0.5, -1, 1, 0.5, -1, -1, -0.5, 1, 1, -0.5, 1, -1, -0.5, -1, 1, -0.5, 1, 1, -0.5, -1, -1, -0.5, -1)
[sub_resource type="MeshLibrary" id="MeshLibrary_jsk3o"]
item/0/name = "Cube"
item/0/mesh = SubResource("BoxMesh_a202f")
item/0/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/mesh_cast_shadow = 1
item/0/shapes = [SubResource("ConcavePolygonShape3D_7h0kd"), Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)]
item/0/navigation_mesh = SubResource("NavigationMesh_qra7f")
item/0/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/navigation_layers = 1
item/0/preview = SubResource("ImageTexture_a0tk4")
metadata/_editor_source_scene = "res://tiles.tscn"
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_4arys"]
[sub_resource type="FogMaterial" id="FogMaterial_6iypd"]
density = -1.0
edge_fade = 1e-05
[sub_resource type="PathExtrudeProfileRect" id="PathExtrudeProfileRect_noarx"]
rect = Rect2(0, 0, 1, 0.25)
[sub_resource type="Curve3D" id="Curve3D_a0tk4"]
closed = true
_data = {
"points": PackedVector3Array(-1.5895, 0.547675, -1.2548, 1.5895, -0.547675, 1.2548, 7.58029, -1.96974, 2.38484, 0.622387, 0.958949, -2.33984, -0.622387, -0.958949, 2.33984, 10.4758, -3.60798, 7.74932, 1.00351, -0.0737343, -1.08957, -1.00351, 0.0737343, 1.08957, 8.90853, -3.95691, 12.793, 0.940016, -0.323963, -0.0481977, -0.940016, 0.323963, 0.0481977, 4.82363, -3.71584, 14.2897, 0.754678, -0.502582, 0.404814, -0.754678, 0.502582, -0.404814, 2.14693, -2.76914, 13.5782, 0.402288, -0.897991, 0.986384, -0.402288, 0.897991, -0.986384, 0.731074, -1.86138, 11.2657, 0.470512, -0.16093, 0.925209, -0.470512, 0.16093, -0.925209, -0.10452, -0.530769, 8.39589, -0.930698, -0.0675459, 1.18981, 0.930698, 0.0675459, -1.18981, 0.154793, 0.10254, 4.75157, -1.98598, 0.304792, 1.01842, 1.98598, -0.304792, -1.01842, 2.71024, -0.225047, 1.74686),
"tilts": PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0, 0)
}
point_count = 9
[sub_resource type="Curve3D" id="Curve3D_r3fl7"]
closed = true
_data = {
"points": PackedVector3Array(-1.5895, 0.547675, -1.2548, 1.5895, -0.547675, 1.2548, 7.58029, -1.96974, 2.38484, 0.622387, 0.958949, -2.33984, -0.622387, -0.958949, 2.33984, 10.4758, -3.60798, 7.74932, 1.00351, -0.0737343, -1.08957, -1.00351, 0.0737343, 1.08957, 8.90853, -3.95691, 12.793, 0.940016, -0.323963, -0.0481977, -0.940016, 0.323963, 0.0481977, 4.82363, -3.71584, 14.2897, 0.754678, -0.502582, 0.404814, -0.754678, 0.502582, -0.404814, 2.14693, -2.76914, 13.5782, 0.402288, -0.897991, 0.986384, -0.402288, 0.897991, -0.986384, 0.731074, -1.86138, 11.2657, 0.470512, -0.16093, 0.925209, -0.470512, 0.16093, -0.925209, -0.10452, -0.530769, 8.39589, -0.930698, -0.0675459, 1.18981, 0.930698, 0.0675459, -1.18981, 0.154793, 0.10254, 4.75157, -1.98598, 0.304792, 1.01842, 1.98598, -0.304792, -1.01842, 2.71024, -0.225047, 1.74686),
"tilts": PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0, 0)
}
point_count = 9
[node name="Node3D" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_noarx")
camera_attributes = SubResource("CameraAttributesPractical_a0tk4")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866025, -0.433013, 0.25, -0.116689, 0.661226, 0.741056, -0.486193, 0.612601, -0.623166, 0, 0, 0)
shadow_enabled = true
[node name="GridMap" type="GridMap" parent="."]
mesh_library = SubResource("MeshLibrary_jsk3o")
physics_material = SubResource("PhysicsMaterial_4arys")
cell_size = Vector3(2, 1, 2)
bake_navigation = true
data = {
"cells": PackedInt32Array(0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 1, 0, 0, 1, 1, 0, 1, 2, 0, 1, 3, 0, 1, 4, 0, 1, 5, 0, 1, 6, 0, 1, 7, 0, 1, 8, 0, 1, 9, 0, 1, 10, 0, 2, 0, 0, 2, 1, 0, 2, 2, 0, 2, 3, 0, 2, 4, 0, 2, 5, 0, 2, 6, 0, 2, 7, 0, 2, 8, 0, 2, 9, 0, 2, 10, 0, 3, 0, 0, 3, 1, 0, 3, 2, 0, 3, 3, 0, 3, 4, 0, 3, 5, 0, 3, 6, 0, 3, 7, 0, 3, 8, 0, 3, 9, 0, 3, 10, 0, 4, 0, 0, 4, 1, 0, 4, 2, 0, 4, 3, 0, 4, 4, 0, 4, 5, 0, 4, 6, 0, 4, 7, 0, 4, 8, 0, 4, 9, 0, 4, 10, 0, 5, 0, 0, 5, 1, 0, 5, 2, 0, 5, 3, 0, 5, 4, 0, 5, 5, 0, 5, 6, 0, 5, 7, 0, 5, 8, 0, 5, 9, 0, 5, 10, 0, 6, 0, 0, 6, 1, 0, 6, 2, 0, 6, 3, 0, 6, 4, 0, 6, 5, 0, 6, 6, 0, 6, 7, 0, 6, 8, 0, 6, 9, 0, 6, 10, 0, 7, 0, 0, 7, 1, 0, 7, 2, 0, 7, 3, 0, 7, 4, 0, 7, 5, 0, 7, 6, 0, 7, 7, 0, 7, 8, 0, 7, 9, 0, 7, 10, 0, 8, 0, 0, 8, 1, 0, 8, 2, 0, 8, 3, 0, 8, 4, 0, 8, 5, 0, 8, 6, 0, 8, 7, 0, 8, 8, 0, 8, 9, 0, 8, 10, 0, 9, 0, 0, 9, 1, 0, 9, 2, 0, 9, 3, 0, 9, 4, 0, 9, 5, 0, 9, 6, 0, 9, 7, 0, 9, 8, 0, 9, 9, 0, 9, 10, 0, 10, 0, 0, 10, 1, 0, 10, 2, 0, 10, 3, 0, 10, 4, 0, 10, 5, 0, 10, 6, 0, 10, 7, 0, 10, 8, 0, 10, 9, 0, 10, 10, 0, 11, 0, 0, 11, 1, 0, 11, 2, 0, 11, 3, 0, 11, 4, 0, 11, 5, 0, 11, 6, 0, 11, 7, 0, 11, 8, 0, 11, 9, 0, 11, 10, 0)
}
script = ExtResource("1_noarx")
metadata/_editor_floor_ = Vector3(0, 4, 0)
[node name="PathfindingGrid" type="Node3D" parent="GridMap"]
script = ExtResource("2_noarx")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.09688, 0.844006, 10.3542)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 10.1975, 10, 19.2994)
doppler_tracking = 2
current = true
[node name="FogVolume" type="FogVolume" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.962624, 11.8561, 3.93469)
visible = false
size = Vector3(53.7622, 43.4556, 41.8376)
material = SubResource("FogMaterial_6iypd")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -3)
omni_range = 12.0
[node name="PathExtrude3D" type="PathExtrude3D" parent="." node_paths=PackedStringArray("path_3d")]
path_3d = NodePath("Path3D")
profile = SubResource("PathExtrudeProfileRect_noarx")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.80993, 13.2424, -10.834)
[node name="Path3D" type="Path3D" parent="PathExtrude3D"]
curve = SubResource("Curve3D_a0tk4")
[node name="PathMesh3D" type="PathMesh3D" parent="." node_paths=PackedStringArray("path_3d")]
path_3d = NodePath("Path3D2")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.33173, 0, 4.85746)
[node name="Path3D2" type="Path3D" parent="PathMesh3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.6883, 12.084, -12.8564)
curve = SubResource("Curve3D_r3fl7")