Now About Social Code
summaryrefslogtreecommitdiff
path: root/prefabs/test_arena.tscn
blob: 2e41f9f75472865c9683eb40b94ec5a6781c5c06 (plain)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[gd_scene load_steps=11 format=3 uid="uid://dlevowk0jrhlg"]

[ext_resource type="Script" path="res://scripts/dungeon_manager.gd" id="1_dbsm0"]
[ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_vc6b5"]
[ext_resource type="Script" path="res://scripts/player.gd" id="2_puqns"]
[ext_resource type="Script" path="res://scripts/ui.gd" id="4_mhgxx"]

[sub_resource type="Environment" id="Environment_2poci"]
background_color = Color(0.130548, 0.170599, 0.433834, 1)
ambient_light_source = 2
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_energy = 0.6

[sub_resource type="BoxMesh" id="BoxMesh_ox60m"]
size = Vector3(0.1, 0.1, 0.5)

[sub_resource type="Animation" id="Animation_l0ukc"]
resource_name = "RESET"
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:position:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1.5, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}

[sub_resource type="Animation" id="Animation_nw35k"]
resource_name = "walk"
length = 2.0
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0, 0, 0, 0),
"points": PackedFloat32Array(0.04, -0.25, 0, 0.25, 0, 0, 0, 0, 0, 0, -0.04, -0.25, 0, 0.25, 0, 0, 0, 0, 0, 0, 0.04, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:position:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0, 0, 0, 0, 0),
"points": PackedFloat32Array(1.45, -0.25, 0, 0.2, 0.005, 1.5, -0.2, 0.000186046, 0.2, 0.000186046, 1.45, -0.2, 0.005, 0.2, 0.005, 1.5, -0.2, 0, 0.2, 0, 1.45, -0.2, 0.005, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2)
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_7dyvd"]
_data = {
"RESET": SubResource("Animation_l0ukc"),
"walk": SubResource("Animation_nw35k")
}

[sub_resource type="BoxShape3D" id="BoxShape3D_r46wa"]
size = Vector3(1, 2, 1)

[node name="Node3D" type="Node3D"]
script = ExtResource("1_dbsm0")

[node name="Node3D" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_2poci")

[node name="Player" parent="." node_paths=PackedStringArray("HEAD", "HEADBOB_ANIMATION") instance=ExtResource("1_vc6b5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 3)
HEAD = NodePath("PlayerCam")
HEADBOB_ANIMATION = NodePath("PlayerCam/HeadAnimation")
LEFT = "left"
RIGHT = "right"
FORWARD = "forward"
BACKWARD = "backward"
jumping_enabled = false
in_air_momentum = false
sprint_enabled = false
crouch_enabled = false

[node name="PlayerCam" type="Node3D" parent="Player" node_paths=PackedStringArray("ui_control")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
script = ExtResource("2_puqns")
grapple_distance = 50.0
ui_control = NodePath("../../CanvasLayer")

[node name="Camera3D" type="Camera3D" parent="Player/PlayerCam"]
current = true

[node name="MeshInstance3D" type="MeshInstance3D" parent="Player/PlayerCam"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.215, -0.09, 0)
mesh = SubResource("BoxMesh_ox60m")

[node name="HeadAnimation" type="AnimationPlayer" parent="Player/PlayerCam"]
libraries = {
"": SubResource("AnimationLibrary_7dyvd")
}

[node name="Area3D" type="Area3D" parent="Player/PlayerCam"]
collision_layer = 8
collision_mask = 8

[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/PlayerCam/Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -0.9)
shape = SubResource("BoxShape3D_r46wa")

[node name="LevelContainer" type="Node3D" parent="."]

[node name="CanvasLayer" type="CanvasLayer" parent="." node_paths=PackedStringArray("player")]
script = ExtResource("4_mhgxx")
player = NodePath("../Player/PlayerCam")

[node name="Ammo" type="Label" parent="CanvasLayer"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -125.0
offset_top = -71.0
offset_right = -56.0
offset_bottom = -48.0
grow_horizontal = 0
grow_vertical = 0
text = "Ammo: 0"

[node name="Toast" type="Label" parent="CanvasLayer"]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -20.0
offset_top = -134.0
offset_right = 20.0
offset_bottom = -111.0
grow_horizontal = 2
grow_vertical = 0

[connection signal="area_entered" from="Player/PlayerCam/Area3D" to="Player/PlayerCam" method="_on_interactable_enter"]
[connection signal="area_exited" from="Player/PlayerCam/Area3D" to="Player/PlayerCam" method="_on_interactable_exit"]