143 lines
4.6 KiB
Text
143 lines
4.6 KiB
Text
[gd_scene load_steps=14 format=3 uid="uid://b0h8dd82b3ox5"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://gfkhedfdi7ug" path="res://sprites/atlasses/Popekko.png" id="1_kqxj7"]
|
|
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_y326v"]
|
|
[ext_resource type="Script" uid="uid://bd4ojfqrl8idm" path="res://scripts/inventory/inventory_slot.gd" id="2_54w8r"]
|
|
[ext_resource type="Script" uid="uid://v0hkuo3gda1b" path="res://scripts/inventory/belt_inventory.gd" id="3_ruvuk"]
|
|
[ext_resource type="Script" uid="uid://bp341eiwvfvyl" path="res://scripts/structures/belt.gd" id="5_54w8r"]
|
|
|
|
[sub_resource type="Resource" id="Resource_t4je2"]
|
|
resource_local_to_scene = true
|
|
script = ExtResource("3_ruvuk")
|
|
capacity = 4
|
|
pop_treshold = 0.95
|
|
internal_array = Array[ExtResource("2_54w8r")]([Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
, Object(RefCounted,"script":ExtResource("2_54w8r"),"held_item":null,"amount":0,"filter":null)
|
|
])
|
|
progress_array = Array[float]([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
|
|
metadata/_custom_type_script = "uid://v0hkuo3gda1b"
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_54w8r"]
|
|
atlas = ExtResource("1_kqxj7")
|
|
region = Rect2(16, 0, 16, 128)
|
|
|
|
[sub_resource type="Animation" id="Animation_ruvuk"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_1rfp0"]
|
|
resource_name = "down"
|
|
loop_mode = 1
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [7, 6, 5, 4]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_t4je2"]
|
|
resource_name = "left"
|
|
length = 1.000025
|
|
loop_mode = 1
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [3, 2, 1, 0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_54w8r"]
|
|
resource_name = "right"
|
|
length = 1.000025
|
|
loop_mode = 1
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_crbfm"]
|
|
resource_name = "up"
|
|
loop_mode = 1
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [4, 5, 6, 7]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_crbfm"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_ruvuk"),
|
|
&"down": SubResource("Animation_1rfp0"),
|
|
&"left": SubResource("Animation_t4je2"),
|
|
&"right": SubResource("Animation_54w8r"),
|
|
&"up": SubResource("Animation_crbfm")
|
|
}
|
|
|
|
[node name="Conveyor" type="Node2D" groups=["buildings"]]
|
|
script = ExtResource("1_y326v")
|
|
inventory = SubResource("Resource_t4je2")
|
|
facing = 1
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = SubResource("AtlasTexture_54w8r")
|
|
vframes = 8
|
|
|
|
[node name="Conveyor" type="Node2D" parent="."]
|
|
z_index = 1
|
|
script = ExtResource("5_54w8r")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_crbfm")
|
|
}
|
|
autoplay = "right"
|
|
|
|
[connection signal="switched_facing" from="." to="Conveyor" method="_on_conveyor_switched_facing"]
|