[gd_scene load_steps=19 format=3 uid="uid://dg2ua1ea73hgl"]

[ext_resource type="Script" path="res://Scripts/Camera3D.gd" id="1_5prpg"]
[ext_resource type="Script" path="res://Scripts/world.gd" id="1_30ld6"]
[ext_resource type="PackedScene" uid="uid://dv5ml0i7c7l6q" path="res://Scenes/Player/player.tscn" id="1_64nst"]
[ext_resource type="PackedScene" uid="uid://cn2mgim73gfut" path="res://Themes_and_UI/game_over_screen.tscn" id="1_yxo5q"]
[ext_resource type="Shader" uid="uid://cfpxgchxwgbkx" path="res://Scenes/testing_scene.tres" id="2_umgid"]
[ext_resource type="PackedScene" uid="uid://dih87d4hfncjk" path="res://Scenes/Enemies/enemy.tscn" id="3_xtkdr"]
[ext_resource type="PackedScene" uid="uid://dyrsqwxsl325s" path="res://Scenes/Items/meat.tscn" id="4_jdq5v"]
[ext_resource type="PackedScene" uid="uid://c3j7la6sf8qy8" path="res://Models/wolf.glb" id="8_biplx"]
[ext_resource type="PackedScene" uid="uid://tggeswy1u25g" path="res://Scenes/Enemies/wolf.tscn" id="9_f6utx"]

[sub_resource type="BoxShape3D" id="BoxShape3D_qxhrx"]
size = Vector3(2, 0.001, 2)

[sub_resource type="PlaneMesh" id="PlaneMesh_qiuq7"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_pgah0"]
render_priority = 0
shader = ExtResource("2_umgid")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8w7bn"]
next_pass = SubResource("ShaderMaterial_pgah0")

[sub_resource type="BoxShape3D" id="BoxShape3D_s60u8"]
size = Vector3(1, 20.2407, 20.0995)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4kbqt"]
backlight_enabled = true
backlight = Color(0.603922, 0, 0, 1)

[sub_resource type="BoxMesh" id="BoxMesh_mo0s4"]
material = SubResource("StandardMaterial3D_4kbqt")

[sub_resource type="NavigationMesh" id="NavigationMesh_qdu6m"]
vertices = PackedVector3Array(0, 0.4995, -9.5, -9.5, 0.4995, 0, -9.5, 0.4995, 9.5, 0, 0.4995, 9.5, 9.5, 0.4995, 0, 9.5, 0.4995, -9.5, 0, 0.4995, 9.5, 9.5, 0.4995, 9.5, 9.5, 0.4995, 0, 0, 0.4995, -9.5, -9.5, 0.4995, -9.5, -9.5, 0.4995, 0)
polygons = [PackedInt32Array(5, 4, 0), PackedInt32Array(0, 4, 3), PackedInt32Array(0, 3, 1), PackedInt32Array(1, 3, 2), PackedInt32Array(8, 7, 6), PackedInt32Array(11, 10, 9)]
geometry_parsed_geometry_type = 1

[sub_resource type="BoxShape3D" id="BoxShape3D_ik30f"]
size = Vector3(20, 0.001, 20)

[node name="World" type="Node3D"]
script = ExtResource("1_30ld6")
MaxEnemyCount = 0
MinEnemyTreshold = 0

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.883308, 0.468793, 0, -0.468793, 0.883308, 0, 0, 0)

[node name="Terrain" type="Node" parent="."]

[node name="Groud" type="StaticBody3D" parent="Terrain"]
transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="Terrain/Groud"]
shape = SubResource("BoxShape3D_qxhrx")

[node name="MeshInstance3D" type="MeshInstance3D" parent="Terrain/Groud"]
mesh = SubResource("PlaneMesh_qiuq7")
surface_material_override/0 = SubResource("StandardMaterial3D_8w7bn")

[node name="Wall" type="StaticBody3D" parent="Terrain"]
transform = Transform3D(-0.174095, 0, -0.984729, 0, 1, 0, 0.984729, 0, -0.174095, 2.10012, 0, -3.89181)

[node name="CollisionShape3D" type="CollisionShape3D" parent="Terrain/Wall"]
shape = SubResource("BoxShape3D_s60u8")

[node name="MeshInstance3D" type="MeshInstance3D" parent="Terrain/Wall"]
transform = Transform3D(1, 0, 0, 0, 20, 0, 0, 0, 20, 0, 0, 0)
mesh = SubResource("BoxMesh_mo0s4")

[node name="NavigationRegion3D" type="NavigationRegion3D" parent="Terrain"]
navigation_mesh = SubResource("NavigationMesh_qdu6m")

[node name="StaticBody3D" type="StaticBody3D" parent="Terrain/NavigationRegion3D"]

[node name="CollisionShape3D" type="CollisionShape3D" parent="Terrain/NavigationRegion3D/StaticBody3D"]
shape = SubResource("BoxShape3D_ik30f")

[node name="SpawnedObjects" type="Node3D" parent="Terrain/NavigationRegion3D/StaticBody3D"]

[node name="GameOverScreen" parent="." instance=ExtResource("1_yxo5q")]

[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("player")]
transform = Transform3D(1, 0, 0, 0, 0.173648, 0.984808, 0, -0.984808, 0.173648, 0, 10, 0)
v_offset = -1.5
script = ExtResource("1_5prpg")
player = NodePath("../Player")
follow_speed = 2.0

[node name="Player" parent="." instance=ExtResource("1_64nst")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)

[node name="Enemy" parent="." instance=ExtResource("3_xtkdr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.021, 3.31542, 6.99299)

[node name="meat" parent="." instance=ExtResource("4_jdq5v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.82852, 0.00499964, 7.55792)

[node name="meat2" parent="." instance=ExtResource("4_jdq5v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.854312, 0.00499845, 8.1563)

[node name="wolf" parent="." instance=ExtResource("8_biplx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.21313, 0.00499994, 2.75135)

[node name="Wolf" parent="." instance=ExtResource("9_f6utx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
