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

[ext_resource type="Script" path="res://scripts/demo_fps.gd" id="1_demofps"]
[ext_resource type="Script" path="res://scripts/player.gd" id="2_player"]
[ext_resource type="Script" path="res://scripts/fps_overlay.gd" id="3_fpsov"]

[sub_resource type="Environment" id="Env1"]
background_mode = 1
background_color = Color(0.02, 0.02, 0.03, 1)
ambient_light_source = 2
ambient_light_color = Color(0.6, 0.6, 0.7, 1)
ambient_light_energy = 0.35
fog_enabled = false

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

[node name="DemoLarge" type="Node3D"]
script = ExtResource("1_demofps")
base_seed = 2028
depth_start = 20
level_count = 3
level_spacing = 6.0
chunks_x = 5
chunks_y = 5
player_spawn_height = 1.1

[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="Levels" 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("Capsule1")

[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 = 2000.0

[node name="FPSOverlay" type="CanvasLayer" parent="."]
script = ExtResource("3_fpsov")

[node name="Label" type="Label" parent="FPSOverlay"]
offset_left = 12.0
offset_top = 12.0
offset_right = 1000.0
offset_bottom = 80.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 = "FPS: --"
