trash can
This commit is contained in:
parent
fed57e38df
commit
39c52694da
11 changed files with 57 additions and 5 deletions
101
scenes/structures/conveyor.tscn
Normal file
101
scenes/structures/conveyor.tscn
Normal file
|
@ -0,0 +1,101 @@
|
|||
[gd_scene load_steps=16 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"]
|
||||
[ext_resource type="Script" uid="uid://lchhqigib2t0" path="res://scripts/structures/directional_sprite.gd" id="5_ruvuk"]
|
||||
[ext_resource type="Script" uid="uid://drsty3i1820ha" path="res://scripts/structures/belt_animation_sync.gd" id="7_t4je2"]
|
||||
|
||||
[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)
|
||||
])
|
||||
progress_array = Array[float]([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, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_crbfm"]
|
||||
atlas = ExtResource("1_kqxj7")
|
||||
region = Rect2(32, 64, 16, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t4je2"]
|
||||
atlas = ExtResource("1_kqxj7")
|
||||
region = Rect2(32, 0, 16, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ruvuk"]
|
||||
atlas = ExtResource("1_kqxj7")
|
||||
region = Rect2(16, 64, 16, 64)
|
||||
|
||||
[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_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="AnimationLibrary" id="AnimationLibrary_crbfm"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_ruvuk"),
|
||||
&"right": SubResource("Animation_54w8r")
|
||||
}
|
||||
|
||||
[node name="Conveyor" type="Node2D" groups=["buildings"]]
|
||||
script = ExtResource("1_y326v")
|
||||
inventory = SubResource("Resource_t4je2")
|
||||
direction = null
|
||||
maximum_directions = 4
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." node_paths=PackedStringArray("structure")]
|
||||
texture = SubResource("AtlasTexture_54w8r")
|
||||
vframes = 4
|
||||
script = ExtResource("5_ruvuk")
|
||||
textures = Array[Texture]([SubResource("AtlasTexture_54w8r"), SubResource("AtlasTexture_crbfm"), SubResource("AtlasTexture_t4je2"), SubResource("AtlasTexture_ruvuk")])
|
||||
structure = NodePath("..")
|
||||
|
||||
[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"
|
||||
script = ExtResource("7_t4je2")
|
Loading…
Add table
Add a link
Reference in a new issue