Conveyor
This commit is contained in:
parent
cb9aef6761
commit
222960a824
19 changed files with 282 additions and 22 deletions
|
@ -1,11 +1,12 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://u7thalwj5742"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://u7thalwj5742"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b7du4vul4bmpq" path="res://scenes/player_platform.tscn" id="1_4ia00"]
|
||||
[ext_resource type="Script" uid="uid://db37xmo8ygwhg" path="res://scripts/gui/construction_button.gd" id="2_27lod"]
|
||||
[ext_resource type="Resource" uid="uid://dj524jjal1f0n" path="res://generic/constructibles/conveyor.tres" id="3_2crwe"]
|
||||
[ext_resource type="Resource" uid="uid://dj524jjal1f0n" path="res://generic/prototypes/conveyor.tres" id="3_2crwe"]
|
||||
[ext_resource type="Script" uid="uid://b4nkk0ndqcto" path="res://scripts/placement_manager.gd" id="4_i7yte"]
|
||||
[ext_resource type="PackedScene" uid="uid://bac552xgua68e" path="res://scenes/other_platform.tscn" id="5_mnxrb"]
|
||||
[ext_resource type="Resource" uid="uid://yn1iesx30nfu" path="res://generic/constructibles/dbg_assembler.tres" id="5_ymyc2"]
|
||||
[ext_resource type="Resource" uid="uid://yn1iesx30nfu" path="res://generic/prototypes/dbg_assembler.tres" id="5_ymyc2"]
|
||||
[ext_resource type="Resource" uid="uid://jhe8wtjoo6c6" path="res://generic/prototypes/dbg_item_deposit.tres" id="6_bq5r8"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bq5r8"]
|
||||
length = 0.001
|
||||
|
@ -85,20 +86,32 @@ constructible = ExtResource("3_2crwe")
|
|||
[node name="AssemblerButton" type="Button" parent="GUI/Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
anchor_top = 0.086
|
||||
anchor_right = 0.1
|
||||
anchor_bottom = 0.88600004
|
||||
offset_left = 50.904
|
||||
offset_top = -0.01999998
|
||||
offset_right = 50.8
|
||||
offset_bottom = -0.020004272
|
||||
anchor_left = 0.107421875
|
||||
anchor_top = 0.08571429
|
||||
anchor_right = 0.19921875
|
||||
anchor_bottom = 0.8857143
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"CRT"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
script = ExtResource("2_27lod")
|
||||
constructible = ExtResource("5_ymyc2")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="SpawnerButton" type="Button" parent="GUI/Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.20898438
|
||||
anchor_top = 0.08571429
|
||||
anchor_right = 0.30078125
|
||||
anchor_bottom = 0.8857143
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"CRT"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
script = ExtResource("2_27lod")
|
||||
constructible = ExtResource("6_bq5r8")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Placer" type="Node2D" parent="."]
|
||||
script = ExtResource("4_i7yte")
|
||||
|
|
|
@ -1,7 +1,17 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://b0h8dd82b3ox5"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b0h8dd82b3ox5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dinyjq8853usn" 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/conveyor_inventory.gd" id="3_ruvuk"]
|
||||
[ext_resource type="Script" uid="uid://bp341eiwvfvyl" path="res://scripts/structures/conveyor.gd" id="5_54w8r"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_t4je2"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("3_ruvuk")
|
||||
capacity = 4
|
||||
pop_treshold = null
|
||||
metadata/_custom_type_script = "uid://v0hkuo3gda1b"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uvy8r"]
|
||||
atlas = ExtResource("1_kqxj7")
|
||||
|
@ -9,6 +19,11 @@ region = Rect2(16, 0, 16, 16)
|
|||
|
||||
[node name="Conveyor" type="Node2D" groups=["buildings"]]
|
||||
script = ExtResource("1_y326v")
|
||||
inventory = SubResource("Resource_t4je2")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_uvy8r")
|
||||
|
||||
[node name="Conveyor" type="Node2D" parent="."]
|
||||
z_index = 1
|
||||
script = ExtResource("5_54w8r")
|
||||
|
|
12
scenes/debug_item.tscn
Normal file
12
scenes/debug_item.tscn
Normal file
|
@ -0,0 +1,12 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bbh7akfbskq4u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dinyjq8853usn" path="res://sprites/atlasses/Popekko.png" id="1_omb5g"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_laovn"]
|
||||
atlas = ExtResource("1_omb5g")
|
||||
region = Rect2(0, 0, 5, 5)
|
||||
|
||||
[node name="DebugItem" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_laovn")
|
31
scenes/debug_item_deposit.tscn
Normal file
31
scenes/debug_item_deposit.tscn
Normal file
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://cteh8r405wqwk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_uhivg"]
|
||||
[ext_resource type="Script" uid="uid://bd4ojfqrl8idm" path="res://scripts/inventory/inventory_slot.gd" id="2_0phsd"]
|
||||
[ext_resource type="Texture2D" uid="uid://dinyjq8853usn" path="res://sprites/atlasses/Popekko.png" id="2_evk1q"]
|
||||
[ext_resource type="Script" uid="uid://1scdy7mttx5h" path="res://scripts/inventory/storage.gd" id="3_nh3xp"]
|
||||
[ext_resource type="Script" uid="uid://v3j1d3qyg30i" path="res://scripts/structures/debug_item_deposit.gd" id="5_nh3xp"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vi75d"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("3_nh3xp")
|
||||
capacity = 1
|
||||
internal_array = Array[ExtResource("2_0phsd")]([Object(RefCounted,"script":ExtResource("2_0phsd"),"held_item":null,"amount":0)
|
||||
])
|
||||
metadata/_custom_type_script = "uid://1scdy7mttx5h"
|
||||
|
||||
[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")
|
||||
inventory = SubResource("Resource_vi75d")
|
||||
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="Node" parent="."]
|
||||
script = ExtResource("5_nh3xp")
|
Loading…
Add table
Add a link
Reference in a new issue