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

[ext_resource type="Script" path="res://Scripts/Player.cs" id="1_8dc05"]
[ext_resource type="PackedScene" uid="uid://d20uxkpid4ynd" path="res://Models/vivi1.gltf" id="1_mqt2m"]
[ext_resource type="PackedScene" uid="uid://dg7731nx22ewp" path="res://Scenes/fireball.tscn" id="2_bsaqu"]
[ext_resource type="PackedScene" uid="uid://ds2y8l8onrs4f" path="res://Scenes/Blizzard.tscn" id="3_4rglj"]
[ext_resource type="Script" path="res://Scripts/CameraSystem.cs" id="3_5ecw2"]
[ext_resource type="PackedScene" uid="uid://c13g5orvyhy1p" path="res://Models/moogle.gltf" id="4_dckjs"]
[ext_resource type="Script" path="res://Scripts/NPCFollow.cs" id="4_o5mpp"]
[ext_resource type="Script" path="res://Scripts/DebugText.cs" id="8_ksx3s"]
[ext_resource type="ArrayMesh" uid="uid://35saq7eyk446" path="res://Models/Cookie.obj" id="8_p45nj"]
[ext_resource type="Script" path="res://Scripts/Enemy.cs" id="9_0gfg2"]

[sub_resource type="BoxShape3D" id="BoxShape3D_8verc"]
size = Vector3(100, 2, 100)

[sub_resource type="BoxMesh" id="BoxMesh_0jrjy"]
size = Vector3(100, 2, 100)

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_v20i5"]
radius = 0.3345
height = 1.0

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_xwe0t"]
radius = 21.859
height = 77.0175

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8y7we"]
albedo_color = Color(0.937255, 0, 0.298039, 1)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vn8ij"]
albedo_color = Color(0.509804, 0.584314, 1, 1)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ultw4"]
albedo_color = Color(1, 1, 0, 1)

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y33ih"]
radius = 1.4
height = 6.94546

[node name="Main" type="Node"]

[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.06471, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("BoxShape3D_8verc")

[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0055759, 0.075381, -0.0165453)
mesh = SubResource("BoxMesh_0jrjy")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.770914, 0.63694, 0, -0.63694, 0.770914, 0, 19.7871, 33.6204)

[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.242191, 0)
collision_layer = 2
script = ExtResource("1_8dc05")
_sensitivityHorizontal = 0.01
_sensitivityVertical = 0.01
_projectiles = Array[PackedScene]([ExtResource("2_bsaqu"), ExtResource("3_4rglj")])

[node name="Pivot" type="Node3D" parent="Player"]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)

[node name="vivi1" parent="Player/Pivot" instance=ExtResource("1_mqt2m")]
transform = Transform3D(-0.01, 0, -8.74228e-10, 0, 0.01, 0, 8.74228e-10, 0, -0.01, 0, 0.20569, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 7.10543e-15, 0, 1, 0, -7.10543e-15, 0, 1, 0, 0.680709, 0)
shape = SubResource("CapsuleShape3D_v20i5")

[node name="CameraMount" type="SpringArm3D" parent="Player"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 1.04459e-07, 1.07272, -1.19487)
spring_length = 2.0
margin = 0.2
script = ExtResource("3_5ecw2")
_sensitivityHorizontal = 0.03
_sensitivityVertical = 0.03

[node name="Camera" type="Camera3D" parent="Player/CameraMount"]
current = true
far = 54.29

[node name="NPC1" type="CharacterBody3D" parent="."]
transform = Transform3D(-0.01, 0, 8.74228e-10, 0, 0.01, 0, -8.74228e-10, 0, -0.01, 0, 0, 1.31191)
collision_layer = 2
script = ExtResource("4_o5mpp")

[node name="Pivot" type="Node3D" parent="NPC1"]

[node name="moogle" parent="NPC1/Pivot" instance=ExtResource("4_dckjs")]
transform = Transform3D(1, 0, -7.10543e-15, 0, 1, 0, 7.10543e-15, 0, 1, 0, 0, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="NPC1"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 35.6294, 0)
shape = SubResource("CapsuleShape3D_xwe0t")

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

[node name="CSGBox3D" type="CSGBox3D" parent="Boxes"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.64941, 0.331903, -5.41311)
material_override = SubResource("StandardMaterial3D_8y7we")
use_collision = true
size = Vector3(2.97826, 5.85842, 2.94616)

[node name="CSGBox3D2" type="CSGBox3D" parent="Boxes"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.71382, 0.35579, -10.8262)
material_override = SubResource("StandardMaterial3D_vn8ij")
use_collision = true
size = Vector3(1, 1, 4.24746)

[node name="CSGBox3D3" type="CSGBox3D" parent="Boxes"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.54678, 0.383205, 4.07192)
material_override = SubResource("StandardMaterial3D_ultw4")
use_collision = true
size = Vector3(15.0266, 4.74018, 1)

[node name="DebugUI" type="Node2D" parent="."]

[node name="TextEdit" type="TextEdit" parent="DebugUI"]
offset_right = 3468.0
offset_bottom = 777.0
script = ExtResource("8_ksx3s")

[node name="RigidBody3D" type="RigidBody3D" parent="."]
collision_layer = 0
collision_mask = 17
max_contacts_reported = 10
contact_monitor = true
script = ExtResource("9_0gfg2")

[node name="Cookie" type="MeshInstance3D" parent="RigidBody3D"]
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, -8.04457, -0.130408, -1.66095)
mesh = ExtResource("8_p45nj")
skeleton = NodePath("../..")

[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, -8.04457, 0.690081, -1.66095)
shape = SubResource("CapsuleShape3D_y33ih")

[connection signal="body_entered" from="RigidBody3D" to="RigidBody3D" method="OnHit"]
