|
[gd_scene load_steps=13 format=3 uid="uid://bn2olldntd7a6"]
|
|
|
|
[ext_resource type="Script" uid="uid://dkd2qbndc3q1o" path="res://scenes/blocks/dropped_block.gd" id="1_50ggx"]
|
|
[ext_resource type="Script" uid="uid://buvqmrrtmxs2h" path="res://scenes/blocks/block.gd" id="2_qtifl"]
|
|
[ext_resource type="Material" uid="uid://bgc6efqf8aiqo" path="res://assets/materials/block_highlight.tres" id="3_8xfh1"]
|
|
[ext_resource type="Texture2D" uid="uid://dsvk3faenewrl" path="res://assets/textures/grass-block.png" id="3_ix4xk"]
|
|
|
|
[sub_resource type="Animation" id="Animation_kym7p"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Block:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Block:rotation")
|
|
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_50ggx"]
|
|
resource_name = "start_animation"
|
|
length = 2.0
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Block:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(0, 0.1, 0), Vector3(0, 0, 0), Vector3(0, -0.1, 0), Vector3(0, 0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Block:rotation")
|
|
tracks/1/interp = 1
|
|
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.261799), Vector3(0, 3.14159, 0.261799), Vector3(0, 6.28319, 0.261799)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kym7p"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_kym7p"),
|
|
&"start_animation": SubResource("Animation_50ggx")
|
|
}
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_n5naa"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_7fut1"]
|
|
material = ExtResource("3_8xfh1")
|
|
size = Vector3(1.01, 1.01, 1.01)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_e15ke"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4e127"]
|
|
albedo_texture = ExtResource("3_ix4xk")
|
|
texture_filter = 0
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_5kft2"]
|
|
radius = 1.0
|
|
|
|
[node name="DroppedBlock" type="Node3D"]
|
|
script = ExtResource("1_50ggx")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_kym7p")
|
|
}
|
|
autoplay = "start_animation"
|
|
|
|
[node name="Block" type="StaticBody3D" parent="."]
|
|
script = ExtResource("2_qtifl")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Block"]
|
|
shape = SubResource("BoxShape3D_n5naa")
|
|
|
|
[node name="HighlightMesh" type="MeshInstance3D" parent="Block"]
|
|
visible = false
|
|
mesh = SubResource("BoxMesh_7fut1")
|
|
|
|
[node name="BlockMesh" type="MeshInstance3D" parent="Block"]
|
|
mesh = SubResource("BoxMesh_e15ke")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4e127")
|
|
|
|
[node name="PickupArea" type="Area3D" parent="Block"]
|
|
transform = Transform3D(0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 0, 0, 1, 0, 0, 0)
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Block/PickupArea"]
|
|
shape = SubResource("SphereShape3D_5kft2")
|
|
|
|
[connection signal="body_entered" from="Block/PickupArea" to="." method="_on_pickup_area_body_entered"]
|