[gd_scene load_steps=12 format=3 uid="uid://dvj8dorx2l7s0"]

[ext_resource type="Script" path="res://game/BeepCube/BeepCube.gd" id="1_7mymb"]
[ext_resource type="PackedScene" uid="uid://bghawm0dmboxm" path="res://game/BeepCube/BeepCubeMesh.glb" id="2_sbb11"]
[ext_resource type="Shader" path="res://game/BeepCube/BeepCube.gdshader" id="3_7slj3"]
[ext_resource type="Texture2D" uid="uid://drc5tdiltfqnk" path="res://game/BeepCube/BeepCubeEmission.png" id="4_10m2m"]
[ext_resource type="PackedScene" uid="uid://cplhsipk6vhem" path="res://game/BeepCube/BeepCube_SliceParticles.tscn" id="5_tissj"]

[sub_resource type="BoxShape3D" id="1"]
size = Vector3(0.8, 0.5, 1)

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

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

[sub_resource type="Animation" id="3"]
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3, 0.6, 0.8),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, -2), Vector3(0, 0, 0), Vector3(0, 0.5, 0), Vector3(0, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.3, 0.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, -180), Vector3(0, 0, -180), Vector3(0, 0, 0)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.3, 0.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0.1, 0.1, 0.1), Vector3(0.1, 0.1, 0.1), Vector3(1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_7xfev"]
_data = {
"RESET": SubResource("Animation_tbh3g"),
"Spawn": SubResource("3")
}

[sub_resource type="ShaderMaterial" id="ShaderMaterial_gk6d3"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("3_7slj3")
shader_parameter/color = Color(1, 0, 0, 1)
shader_parameter/metallic = 0.3
shader_parameter/roughness = 0.2
shader_parameter/sub_emission_energy = 0.18
shader_parameter/cutted = false
shader_parameter/cut_dist_from_center = 0.0
shader_parameter/cut_vanish = 0.0
shader_parameter/cut_angle = 0.0
shader_parameter/cut_white_margin = 0.04
shader_parameter/is_dot = false
shader_parameter/is_chain_head = false
shader_parameter/texture_emission = ExtResource("4_10m2m")

[node name="BeepCube" type="Node3D"]
script = ExtResource("1_7mymb")

[node name="BeepCube_Big" type="Area3D" parent="." groups=["beepcube"]]
monitoring = false

[node name="CollisionBig" type="CollisionShape3D" parent="BeepCube_Big"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.25)
shape = SubResource("1")
disabled = true

[node name="BeepCube_Small" type="Area3D" parent="." groups=["beepcube"]]
monitoring = false

[node name="CollisionSmall" type="CollisionShape3D" parent="BeepCube_Small"]
shape = SubResource("2")
disabled = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../BeepCubeMesh")
libraries = {
"": SubResource("AnimationLibrary_7xfev")
}

[node name="BeepCubeMesh" parent="." instance=ExtResource("2_sbb11")]
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
layers = 3
material_override = SubResource("ShaderMaterial_gk6d3")

[node name="SliceParticles" parent="." instance=ExtResource("5_tissj")]
