2025-02-06 12:42:14 +00:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://btlkodvngm634"]
|
|
|
|
|
2025-02-17 12:57:31 +00:00
|
|
|
[ext_resource type="Script" path="res://scenes/player/hud.gd" id="1_6gu0f"]
|
2025-02-06 12:42:14 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://oopj5mj1vdp0" path="res://assets/crosshairs/crosshair_default.png" id="1_u13st"]
|
2025-02-17 12:57:31 +00:00
|
|
|
[ext_resource type="Script" path="res://scenes/player/gun_mount.gd" id="3_d72tg"]
|
2025-02-06 12:42:14 +00:00
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_3bk8i"]
|
|
|
|
font_size = 70
|
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_adbcb"]
|
|
|
|
font_size = 100
|
|
|
|
font_color = Color(0.756874, 0, 0.223924, 1)
|
|
|
|
|
|
|
|
[sub_resource type="Environment" id="Environment_i2xeo"]
|
|
|
|
sdfgi_enabled = true
|
|
|
|
glow_enabled = true
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_falg4"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:position")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0.125),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Vector3(0, 0, 0)]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_fhivu"]
|
|
|
|
resource_name = "idle"
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_mkk0p"]
|
|
|
|
resource_name = "move"
|
|
|
|
length = 0.5
|
|
|
|
loop_mode = 2
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:position")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.125, 0.25, 0.375, 0.5),
|
|
|
|
"transitions": PackedFloat32Array(1, 2, 1, 2, 1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Vector3(0, 0, 0), Vector3(-0.1, 0.1, -0.1), Vector3(0, 0, 0), Vector3(-0.1, 0.1, -0.1), Vector3(0, 0, 0)]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_ah507"]
|
|
|
|
resource_name = "shooting"
|
|
|
|
length = 0.2
|
|
|
|
loop_mode = 1
|
|
|
|
step = 0.1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:position")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2),
|
|
|
|
"transitions": PackedFloat32Array(1, 0.233258, 8.57419),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Vector3(0, 0, 0), Vector3(0, -0.01, -0.01), Vector3(0, 0, 0)]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_u1b6p"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_falg4"),
|
|
|
|
"idle": SubResource("Animation_fhivu"),
|
|
|
|
"move": SubResource("Animation_mkk0p"),
|
|
|
|
"shooting": SubResource("Animation_ah507")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HUD" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 2
|
2025-02-17 12:57:31 +00:00
|
|
|
script = ExtResource("1_6gu0f")
|
2025-02-06 12:42:14 +00:00
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -36.0
|
|
|
|
offset_top = -36.0
|
|
|
|
offset_right = 36.0
|
|
|
|
offset_bottom = 36.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
texture = ExtResource("1_u13st")
|
|
|
|
|
|
|
|
[node name="HealthIndicator" type="Label" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 2
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_top = -23.0
|
|
|
|
offset_right = 40.0
|
|
|
|
grow_vertical = 0
|
|
|
|
text = "100"
|
|
|
|
label_settings = SubResource("LabelSettings_3bk8i")
|
|
|
|
|
|
|
|
[node name="FPS" type="Label" parent="." groups=["player_placeholder"]]
|
|
|
|
layout_mode = 1
|
|
|
|
offset_right = 40.0
|
|
|
|
offset_bottom = 23.0
|
|
|
|
text = "0"
|
|
|
|
label_settings = SubResource("LabelSettings_adbcb")
|
|
|
|
|
|
|
|
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
stretch = true
|
|
|
|
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
|
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
msaa_2d = 1
|
|
|
|
msaa_3d = 1
|
|
|
|
canvas_cull_mask = 4294443008
|
|
|
|
size = Vector2i(1152, 648)
|
|
|
|
render_target_update_mode = 4
|
|
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="SubViewportContainer/SubViewport"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.30409, -0.371306)
|
|
|
|
cull_mask = 524288
|
|
|
|
environment = SubResource("Environment_i2xeo")
|
|
|
|
fov = 50.0
|
|
|
|
|
|
|
|
[node name="GunMount" type="Node3D" parent="SubViewportContainer/SubViewport/Camera3D"]
|
2025-02-17 12:57:31 +00:00
|
|
|
script = ExtResource("3_d72tg")
|
2025-02-06 12:42:14 +00:00
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="SubViewportContainer/SubViewport/Camera3D/GunMount"]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_u1b6p")
|
|
|
|
}
|