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")
|
56
scenes/structures/debug_assembler.tscn
Normal file
56
scenes/structures/debug_assembler.tscn
Normal file
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://dfatkxv6n55dw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_k5y3y"]
|
||||
[ext_resource type="Texture2D" uid="uid://gfkhedfdi7ug" path="res://sprites/atlasses/Popekko.png" id="2_4befw"]
|
||||
[ext_resource type="Script" uid="uid://bd4ojfqrl8idm" path="res://scripts/inventory/inventory_slot.gd" id="2_p1cyh"]
|
||||
[ext_resource type="Script" uid="uid://m6b6vawdqgqb" path="res://scripts/inventory/in_out_inventory.gd" id="3_wqoim"]
|
||||
[ext_resource type="Script" uid="uid://c7mx3uatj6ulm" path="res://scripts/structures/assembler.gd" id="5_0x00x"]
|
||||
[ext_resource type="Script" uid="uid://lchhqigib2t0" path="res://scripts/structures/directional_sprite.gd" id="5_kno0u"]
|
||||
[ext_resource type="Resource" uid="uid://d2lbc1qqkayaa" path="res://generic/recipes/test_recipe.tres" id="6_wqoim"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kno0u"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("3_wqoim")
|
||||
input_capacity = 2
|
||||
output_capacity = 1
|
||||
input_array = Array[ExtResource("2_p1cyh")]([Object(RefCounted,"script":ExtResource("2_p1cyh"),"held_item":null,"amount":0,"filter":null)
|
||||
, Object(RefCounted,"script":ExtResource("2_p1cyh"),"held_item":null,"amount":0,"filter":null)
|
||||
])
|
||||
output_slot = Object(RefCounted,"script":ExtResource("2_p1cyh"),"held_item":null,"amount":0,"filter":null)
|
||||
|
||||
metadata/_custom_type_script = "uid://m6b6vawdqgqb"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xh4eg"]
|
||||
atlas = ExtResource("2_4befw")
|
||||
region = Rect2(48, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0x00x"]
|
||||
atlas = ExtResource("2_4befw")
|
||||
region = Rect2(48, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dr8in"]
|
||||
atlas = ExtResource("2_4befw")
|
||||
region = Rect2(48, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kno0u"]
|
||||
atlas = ExtResource("2_4befw")
|
||||
region = Rect2(48, 64, 32, 32)
|
||||
|
||||
[node name="DebugAssembler" type="Node2D"]
|
||||
script = ExtResource("1_k5y3y")
|
||||
dimensions = Rect2i(0, 0, 2, 2)
|
||||
inventory = SubResource("Resource_kno0u")
|
||||
direction = 1.571
|
||||
maximum_directions = 4
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." node_paths=PackedStringArray("structure")]
|
||||
texture = SubResource("AtlasTexture_xh4eg")
|
||||
offset = Vector2(8, 8)
|
||||
script = ExtResource("5_kno0u")
|
||||
textures = Array[Texture]([SubResource("AtlasTexture_0x00x"), SubResource("AtlasTexture_xh4eg"), SubResource("AtlasTexture_dr8in"), SubResource("AtlasTexture_kno0u")])
|
||||
structure = NodePath("..")
|
||||
|
||||
[node name="Assembler" type="Node2D" parent="."]
|
||||
position = Vector2(16, 16)
|
||||
script = ExtResource("5_0x00x")
|
||||
selected_recipe = ExtResource("6_wqoim")
|
21
scenes/structures/debug_item_deposit.tscn
Normal file
21
scenes/structures/debug_item_deposit.tscn
Normal file
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cteh8r405wqwk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_uhivg"]
|
||||
[ext_resource type="Texture2D" uid="uid://gfkhedfdi7ug" path="res://sprites/atlasses/Popekko.png" id="2_evk1q"]
|
||||
[ext_resource type="Script" uid="uid://v3j1d3qyg30i" path="res://scripts/structures/debug_item_deposit.gd" id="5_nh3xp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wxqk4"]
|
||||
atlas = ExtResource("2_evk1q")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[node name="DebugItemDeposit" type="Node2D"]
|
||||
script = ExtResource("1_uhivg")
|
||||
metadata/_custom_type_script = "uid://bbd7o2st8kmgl"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
self_modulate = Color(1, 0, 0, 1)
|
||||
texture = SubResource("AtlasTexture_wxqk4")
|
||||
|
||||
[node name="ItemDeposit" type="Node2D" parent="."]
|
||||
script = ExtResource("5_nh3xp")
|
||||
metadata/_custom_type_script = "uid://iidfsh0lirc2"
|
27
scenes/structures/trash_can.tscn
Normal file
27
scenes/structures/trash_can.tscn
Normal file
|
@ -0,0 +1,27 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://dpsrwmum6rbmi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_818vg"]
|
||||
[ext_resource type="Script" uid="uid://bd4ojfqrl8idm" path="res://scripts/inventory/inventory_slot.gd" id="2_y1ram"]
|
||||
[ext_resource type="Script" uid="uid://1scdy7mttx5h" path="res://scripts/inventory/storage.gd" id="3_lldoj"]
|
||||
[ext_resource type="Script" uid="uid://dwx8y8c6guldd" path="res://scripts/structures/trash_can.gd" id="4_mfdbk"]
|
||||
[ext_resource type="Texture2D" uid="uid://gfkhedfdi7ug" path="res://sprites/atlasses/Popekko.png" id="5_y1ram"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fvoq6"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("3_lldoj")
|
||||
capacity = 1
|
||||
metadata/_custom_type_script = "uid://1scdy7mttx5h"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lldoj"]
|
||||
atlas = ExtResource("5_y1ram")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[node name="TrashCan" type="Node2D"]
|
||||
script = ExtResource("1_818vg")
|
||||
inventory = SubResource("Resource_fvoq6")
|
||||
|
||||
[node name="Can" type="Node2D" parent="."]
|
||||
script = ExtResource("4_mfdbk")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_lldoj")
|
Loading…
Add table
Add a link
Reference in a new issue