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

[ext_resource type="Script" uid="uid://dhfun46prq3uk" path="res://scripts/game.gd" id="1_gee14"]
[ext_resource type="Script" uid="uid://crf3d7dpjvlsl" path="res://scripts/player_camera.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://66iq60cxqomg" path="res://scripts/player.gd" id="1_yqjtg"]
[ext_resource type="Texture2D" uid="uid://b6krbvbco0jt6" path="res://textures/shadow.png" id="4_lbhrr"]
[ext_resource type="PackedScene" uid="uid://cnii80nh1mxr2" path="res://scenes/assets/dreamer_body.tscn" id="4_p57ef"]
[ext_resource type="PackedScene" uid="uid://b0kty7juk7rfo" path="res://models/stalagmite.gltf" id="5_iywne"]
[ext_resource type="Script" uid="uid://ddhrcj4ljm446" path="res://scripts/test_enemy.gd" id="6_u5sy4"]
[ext_resource type="Script" uid="uid://c7gns73bldktx" path="res://scripts/slime.gd" id="7_0tnpc"]
[ext_resource type="Texture2D" uid="uid://b8sc3vq5pmwil" path="res://textures/slime.png" id="8_vtaks"]

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lbhrr"]
albedo_color = Color(0.61, 0.28791997, 0.17079999, 1)

[sub_resource type="Environment" id="Environment_uwrxv"]

[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_yqjtg"]

[sub_resource type="BoxShape3D" id="BoxShape3D_0tnpc"]
size = Vector3(1.2, 1, 1.3)

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yqjtg"]
radius = 0.25
height = 1.0

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_0tnpc"]
radius = 0.25
height = 0.5

[sub_resource type="Animation" id="Animation_0tnpc"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Body:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}

[sub_resource type="Animation" id="Animation_vtaks"]
resource_name = "idle"
length = 2.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1, 2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(1, 1, 1), Vector3(1, 0.8, 1), Vector3(1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Body:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 1, 2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0, -0.03, 0), Vector3(0, 0, 0)]
}

[sub_resource type="Animation" id="Animation_kvpfn"]
resource_name = "jump"
length = 0.6
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 0.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(1, 1, 1), Vector3(1.4, 0.6, 1), Vector3(0.7, 1.3, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Body:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 0.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0, -0.09, 0), Vector3(0, 0.05, 0)]
}

[sub_resource type="Animation" id="Animation_dinhu"]
resource_name = "leap"
length = 0.3
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = false
tracks/0/keys = {
"times": PackedFloat32Array(0.03333336, 0.15, 0.3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0.7, 1.3, 1), Vector3(0.65, 1.35, 1), Vector3(0.7, 1.3, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Body:position")
tracks/1/interp = 2
tracks/1/loop_wrap = false
tracks/1/keys = {
"times": PackedFloat32Array(0.03333336),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0.05, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_kvuet"]
_data = {
&"RESET": SubResource("Animation_0tnpc"),
&"idle": SubResource("Animation_vtaks"),
&"jump": SubResource("Animation_kvpfn"),
&"leap": SubResource("Animation_dinhu")
}

[node name="Game" type="Node3D" unique_id=1358608749]
script = ExtResource("1_gee14")

[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=1781956012]
use_collision = true
size = Vector3(16, 1, 16)
material = SubResource("StandardMaterial3D_lbhrr")

[node name="PlayerCamera" type="Camera3D" parent="." unique_id=1101523944]
transform = Transform3D(0.70710677, -0.32650557, 0.62721133, 0, 0.8870108, 0.46174863, -0.70710677, -0.32650557, 0.62721133, 4, 6, 4)
environment = SubResource("Environment_uwrxv")
attributes = SubResource("CameraAttributesPractical_yqjtg")
fov = 70.0
script = ExtResource("1_lnu2h")

[node name="Player" type="CharacterBody3D" parent="." unique_id=1201448850]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
script = ExtResource("1_yqjtg")

[node name="HitCollision" type="Area3D" parent="Player" unique_id=1708789602]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1500001, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/HitCollision" unique_id=653786925]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, 0)
shape = SubResource("BoxShape3D_0tnpc")

[node name="DreamerBody" parent="Player" unique_id=723408850 instance=ExtResource("4_p57ef")]

[node name="Shadow" type="Sprite3D" parent="Player" unique_id=495232250]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
modulate = Color(1, 1, 1, 0.5764706)
pixel_size = 0.03
axis = 1
texture_filter = 0
texture = ExtResource("4_lbhrr")

[node name="Collision" type="CollisionShape3D" parent="Player" unique_id=1487040988]
shape = SubResource("CapsuleShape3D_yqjtg")

[node name="Floorcast" type="RayCast3D" parent="Player" unique_id=991770843]
target_position = Vector3(0, -16, 0)

[node name="EnemyTest" type="CharacterBody3D" parent="." unique_id=109591127]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 3, 0)
script = ExtResource("6_u5sy4")

[node name="DreamerBody" parent="EnemyTest" unique_id=780505789 instance=ExtResource("4_p57ef")]

[node name="Shadow" type="Sprite3D" parent="EnemyTest" unique_id=521501658]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
modulate = Color(1, 1, 1, 0.5764706)
pixel_size = 0.03
axis = 1
texture_filter = 0
texture = ExtResource("4_lbhrr")

[node name="Collision" type="CollisionShape3D" parent="EnemyTest" unique_id=1794588893]
shape = SubResource("CapsuleShape3D_yqjtg")

[node name="Floorcast" type="RayCast3D" parent="EnemyTest" unique_id=1411083951]
target_position = Vector3(0, -16, 0)

[node name="HealthLabel" type="Label3D" parent="EnemyTest" unique_id=1869384013]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8399999, 0)
pixel_size = 0.01
billboard = 1
text = "hello!"

[node name="Slime" type="CharacterBody3D" parent="." unique_id=1509486839]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 3, -3.81)
script = ExtResource("7_0tnpc")

[node name="Shadow" type="Sprite3D" parent="Slime" unique_id=45998645]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
modulate = Color(1, 1, 1, 0.5764706)
pixel_size = 0.03
axis = 1
texture_filter = 0
texture = ExtResource("4_lbhrr")

[node name="Collision" type="CollisionShape3D" parent="Slime" unique_id=225714626]
shape = SubResource("CapsuleShape3D_0tnpc")

[node name="Floorcast" type="RayCast3D" parent="Slime" unique_id=1647004546]
target_position = Vector3(0, -16, 0)

[node name="HealthLabel" type="Label3D" parent="Slime" unique_id=771436172]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8399999, 0)
pixel_size = 0.01
billboard = 1
text = "hello!"

[node name="Body" type="Sprite3D" parent="Slime" unique_id=212174649]
pixel_size = 0.03
texture_filter = 0
texture = ExtResource("8_vtaks")

[node name="Animator" type="AnimationPlayer" parent="Slime/Body" unique_id=93116103]
root_node = NodePath("../..")
libraries/ = SubResource("AnimationLibrary_kvuet")

[node name="Sun" type="DirectionalLight3D" parent="." unique_id=1000747668]
transform = Transform3D(5.337265e-08, 0.90171933, -0.4323222, -0.3453802, 0.40571806, 0.8462301, 0.93846303, 0.14931537, 0.31143594, 0, 0, 0)
shadow_enabled = true

[node name="blockbench_export" parent="." unique_id=1479648799 instance=ExtResource("5_iywne")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.48141205, 3)
