🚧 reworked farming system to work with indices instead of positions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=117 format=3 uid="uid://gigb28qk8t12"]
|
||||
[gd_scene load_steps=115 format=3 uid="uid://gigb28qk8t12"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c25udixd5m6l0" path="res://prefabs/characters/Player2D.tscn" id="1_7wfwe"]
|
||||
[ext_resource type="Texture2D" uid="uid://8sr11ex30n0m" path="res://art/mockups/Kenney_Backgrounds/Samples/uncolored_hills.png" id="2_7b2ri"]
|
||||
@@ -211,13 +211,6 @@ shader_parameter/tiling_scale = Vector2(1, 20)
|
||||
shader = ExtResource("13_kt1wx")
|
||||
shader_parameter/tiling_scale = Vector2(1, 25)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_p6n74"]
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(7150, 941.9418)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2nee2"]
|
||||
size = Vector2(5782, 896.7792)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lwk6t"]
|
||||
shader = ExtResource("13_7p0hq")
|
||||
shader_parameter/hue_shift = 0.0
|
||||
@@ -2099,22 +2092,6 @@ rotation = 1.5708
|
||||
scale = Vector2(0.1, 10.8)
|
||||
texture = ExtResource("21_if5vh")
|
||||
|
||||
[node name="Farming Colliders" type="Area2D" parent="YSorted/Farm visuals"]
|
||||
position = Vector2(5, 4.098892)
|
||||
scale = Vector2(1, 0.993819)
|
||||
collision_mask = 5
|
||||
collision_priority = 10.0
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="YSorted/Farm visuals/Farming Colliders"]
|
||||
position = Vector2(11913.995, 3085.0288)
|
||||
scale = Vector2(0.9999998, 0.9999998)
|
||||
shape = SubResource("RectangleShape2D_p6n74")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="YSorted/Farm visuals/Farming Colliders"]
|
||||
position = Vector2(2895.9988, 3088.6096)
|
||||
scale = Vector2(0.9999998, 0.9999998)
|
||||
shape = SubResource("RectangleShape2D_2nee2")
|
||||
|
||||
[node name="Blocker" type="Node2D" parent="YSorted"]
|
||||
|
||||
[node name="Fence Door2" type="Sprite2D" parent="YSorted/Blocker"]
|
||||
@@ -2156,6 +2133,7 @@ position = Vector2(-113.561, 193.035)
|
||||
shape = SubResource("RectangleShape2D_2vojv")
|
||||
|
||||
[node name="ducks" type="Node2D" parent="YSorted"]
|
||||
visible = false
|
||||
z_index = 1
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("49_uxa2m")
|
||||
@@ -2232,6 +2210,7 @@ position = Vector2(-4659, 2897)
|
||||
position = Vector2(-5016, 3361)
|
||||
|
||||
[node name="trash" type="Node2D" parent="YSorted"]
|
||||
visible = false
|
||||
z_index = 1
|
||||
y_sort_enabled = true
|
||||
|
||||
@@ -2428,8 +2407,6 @@ _payloadToSet = "farmOutside"
|
||||
[connection signal="SuccessfulPickUp" from="YSorted/SeedPickup" to="YSorted/Vesna" method="HandlePickUp"]
|
||||
[connection signal="SuccessfulPickUp" from="YSorted/SeedPickup2" to="YSorted/Vesna" method="HandlePickUp"]
|
||||
[connection signal="InteractedTool" from="YSorted/Farm visuals/Static/EnterHouseInteraction" to="." method="LoadSceneAtIndex"]
|
||||
[connection signal="mouse_entered" from="YSorted/Farm visuals/Farming Colliders" to="YSorted/Vesna/FarmingControls" method="CanCreateFields"]
|
||||
[connection signal="mouse_exited" from="YSorted/Farm visuals/Farming Colliders" to="YSorted/Vesna/FarmingControls" method="CannotCreateFields"]
|
||||
[connection signal="InteractedTool" from="YSorted/Blocker/InteractionArea" to="." method="LoadSceneAtIndex"]
|
||||
[connection signal="GoalReached" from="YSorted/ducks" to="YSorted/ducks/DialogicToggle" method="ToggleDialogue"]
|
||||
[connection signal="DuckCollected" from="YSorted/ducks/Duck2" to="YSorted/ducks" method="Increment"]
|
||||
|
||||
Reference in New Issue
Block a user