-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
101 lines (76 loc) · 4.67 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[gd_scene load_steps=14 format=3 uid="uid://dg5tupbob1wj1"]
[ext_resource type="PackedScene" uid="uid://of51mbxxk5fy" path="res://environment/walls.tscn" id="1_fa23g"]
[ext_resource type="Script" path="res://main.gd" id="1_kqp3f"]
[ext_resource type="Script" path="res://actors/player.gd" id="2_us4dt"]
[ext_resource type="PackedScene" uid="uid://dloul6gy17sq" path="res://weapons/weapon_manager.tscn" id="3_frrhr"]
[ext_resource type="Script" path="res://environment/impact_container.gd" id="5_2ak7d"]
[ext_resource type="PackedScene" uid="uid://bowv7w72psut8" path="res://actors/enemy.tscn" id="6_6lifp"]
[ext_resource type="PackedScene" uid="uid://cchtb0wqw525f" path="res://ui/hud.tscn" id="6_emg8e"]
[ext_resource type="Script" path="res://environment/enemy_container.gd" id="7_rvmds"]
[ext_resource type="VoxelGIData" uid="uid://bl8tpttueuvfd" path="res://environment/main.VoxelGI_data.res" id="8_wtiy4"]
[sub_resource type="Environment" id="Environment_xju33"]
background_color = Color(1, 1, 1, 1)
ambient_light_source = 1
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_energy = 0.8
tonemap_mode = 2
glow_enabled = true
[sub_resource type="CapsuleMesh" id="CapsuleMesh_r6t5l"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_326p3"]
[sub_resource type="NavigationMesh" id="NavigationMesh_74y86"]
vertices = PackedVector3Array(-17.0326, 0.5, 10.2174, -10.0326, 0.5, 17.2174, 9.9674, 0.5, 17.2174, 17.2174, 0.5, 9.9674, 17.2174, 0.5, -10.0326, 10.2174, 0.5, -17.0326, 10.2174, 0.5, -17.0326, -10.0326, 0.5, -17.0326, -17.0326, 0.5, -10.0326, -17.0326, 0.5, 10.2174, 9.9674, 0.5, 17.2174, 17.2174, 0.5, 9.9674)
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(5, 4, 3), PackedInt32Array(7, 6, 8), PackedInt32Array(8, 6, 9), PackedInt32Array(9, 6, 11), PackedInt32Array(9, 11, 10)]
agent_radius = 1.25
[node name="Main" type="Node3D"]
script = ExtResource("1_kqp3f")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_xju33")
[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 1.2, 2.08165e-12)
collision_layer = 2
collision_mask = 5
script = ExtResource("2_us4dt")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Player"]
cast_shadow = 0
gi_mode = 0
mesh = SubResource("CapsuleMesh_r6t5l")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
shape = SubResource("CapsuleShape3D_326p3")
[node name="Pivot" type="Node3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.6, 2.08165e-12)
[node name="Camera3D" type="Camera3D" parent="Player/Pivot"]
current = true
[node name="WeaponManager" parent="Player/Pivot/Camera3D" instance=ExtResource("3_frrhr")]
transform = Transform3D(-1, 3.48787e-16, -8.74228e-08, 3.48787e-16, 1, -3.48787e-16, 8.74228e-08, -3.48787e-16, -1, 2.08165e-12, -0.7, -0.9)
[node name="AimRaycast" type="RayCast3D" parent="Player/Pivot/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 2.08165e-12, -0.6)
target_position = Vector3(2.08165e-12, 2.08165e-12, -50)
collision_mask = 5
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
navigation_mesh = SubResource("NavigationMesh_74y86")
[node name="Walls" parent="NavigationRegion3D" instance=ExtResource("1_fa23g")]
[node name="EnemyContainer" type="Node3D" parent="."]
script = ExtResource("7_rvmds")
[node name="Enemy" parent="EnemyContainer" instance=ExtResource("6_6lifp")]
transform = Transform3D(-0.999163, 0, 0.0409166, 0, 1, 0, -0.0409166, 0, -0.999163, 0, 0, -16.1961)
[node name="Enemy2" parent="EnemyContainer" instance=ExtResource("6_6lifp")]
transform = Transform3D(-0.0419978, 0, -0.999118, 0, 1, 0, 0.999118, 0, -0.0419978, -16.0388, 0, 0.092792)
[node name="Enemy3" parent="EnemyContainer" instance=ExtResource("6_6lifp")]
transform = Transform3D(0.998788, 0, -0.049216, 0, 1, 0, 0.049216, 0, 0.998788, -0.116271, 0, 16.5293)
[node name="Enemy4" parent="EnemyContainer" instance=ExtResource("6_6lifp")]
transform = Transform3D(0.00298474, 0, 0.999996, 0, 1, 0, -0.999996, 0, 0.00298472, 15.9597, 0, 0.092792)
[node name="ImpactContainer" type="Node3D" parent="."]
script = ExtResource("5_2ak7d")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 8, 2.08165e-12)
light_color = Color(0.9, 0.9, 1, 1)
light_energy = 2.0
light_bake_mode = 1
shadow_enabled = true
omni_range = 30.0
omni_attenuation = 0.5
[node name="VoxelGI" type="VoxelGI" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 5, 2.08165e-12)
size = Vector3(38, 12, 38)
data = ExtResource("8_wtiy4")
[node name="HUD" parent="." instance=ExtResource("6_emg8e")]