[gd_scene format=3 uid="uid://jysbib77g851"]

[ext_resource type="Script" path="res://scripts/arcade/arcade_scene.gd" id="1_scene"]
[ext_resource type="Script" path="res://scripts/arcade/player_arcade.gd" id="2_player"]
[ext_resource type="Script" path="res://scripts/arcade/hud.gd" id="3_hud"]

[sub_resource type="Environment" id="Env1"]
background_mode = 1
background_color = Color(0.03, 0.03, 0.05, 1)
ambient_light_source = 2
ambient_light_color = Color(0.55, 0.55, 0.65, 1)
ambient_light_energy = 0.45
fog_enabled = false

[sub_resource type="CapsuleShape3D" id="PlayerCapsule"]
radius = 0.3
height = 1.7

[node name="Arcade" type="Node3D"]
script = ExtResource("1_scene")
base_seed = 25
start_depth = 1
total_depths = 10

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

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 10, 0)
light_color = Color(1, 0.95, 0.85, 1)
light_energy = 0.9
shadow_enabled = true

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

[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 39, 1.1, 14)
script = ExtResource("2_player")

[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
shape = SubResource("PlayerCapsule")

[node name="Camera3D" type="Camera3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
current = true
near = 0.05
far = 500.0

[node name="HUD" type="CanvasLayer" parent="."]
script = ExtResource("3_hud")

[node name="HPBar" type="Control" parent="HUD"]
offset_left = 16.0
offset_top = 16.0
offset_right = 240.0
offset_bottom = 56.0

[node name="BG" type="ColorRect" parent="HUD/HPBar"]
offset_right = 200.0
offset_bottom = 20.0
color = Color(0.1, 0.1, 0.12, 0.75)

[node name="Fill" type="ColorRect" parent="HUD/HPBar"]
offset_right = 200.0
offset_bottom = 20.0
color = Color(0.32, 0.82, 0.36, 1)

[node name="Label" type="Label" parent="HUD/HPBar"]
offset_top = 22.0
offset_right = 240.0
offset_bottom = 40.0
theme_override_colors/font_color = Color(0.95, 0.95, 0.95, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 3
text = "HP 20 / 20"

[node name="InfoLabel" type="Label" parent="HUD"]
offset_left = 16.0
offset_top = 64.0
offset_right = 500.0
offset_bottom = 88.0
theme_override_colors/font_color = Color(0.95, 0.95, 0.95, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 3
text = "Depth 1 / 10"

[node name="EndOverlay" type="Control" parent="HUD"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2

[node name="Dim" type="ColorRect" parent="HUD/EndOverlay"]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 0.55)

[node name="Title" type="Label" parent="HUD/EndOverlay"]
anchor_left = 0.5
anchor_top = 0.4
anchor_right = 0.5
anchor_bottom = 0.4
offset_left = -200.0
offset_top = -40.0
offset_right = 200.0
offset_bottom = 20.0
theme_override_colors/font_color = Color(0.92, 0.28, 0.28, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
theme_override_font_sizes/font_size = 56
text = "YOU DIED"
horizontal_alignment = 1

[node name="Hint" type="Label" parent="HUD/EndOverlay"]
anchor_left = 0.5
anchor_top = 0.55
anchor_right = 0.5
anchor_bottom = 0.55
offset_left = -160.0
offset_top = 0.0
offset_right = 160.0
offset_bottom = 30.0
theme_override_colors/font_color = Color(0.9, 0.9, 0.9, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 3
text = "Press R to restart"
horizontal_alignment = 1
