MVP duck setup

This commit is contained in:
2025-07-09 22:40:03 +02:00
parent 2429958741
commit 8c18688a69
11 changed files with 420 additions and 384 deletions
+40
View File
@@ -0,0 +1,40 @@
[gd_scene load_steps=7 format=3 uid="uid://c02s0c64tm2v"]
[ext_resource type="Script" uid="uid://cssdu8viimwm6" path="res://scripts/CSharp/Common/SceneTransition.cs" id="1_5otdq"]
[ext_resource type="PackedScene" uid="uid://gigb28qk8t12" path="res://scenes/Babushka_scene_farm_outside_2d.tscn" id="2_8y0cv"]
[ext_resource type="Texture2D" uid="uid://cou4iy8dhqmsf" path="res://art/indoor/indoor outdoor/muster/TEPPICH FLORAL.png" id="3_8y0cv"]
[ext_resource type="Script" uid="uid://d2486x6upmwqq" path="res://scripts/GdScript/dialogic_starter.gd" id="4_qjf71"]
[ext_resource type="Script" uid="uid://dnipeibppjirs" path="res://scripts/CSharp/Common/NPC/DialogicOverlayStarter.cs" id="5_ihldk"]
[ext_resource type="Script" uid="uid://cvkw4qd2hxksi" path="res://scripts/GdScript/dialogic_toggle.gd" id="6_8y0cv"]
[node name="BabushkaSceneDisclaimer" type="Node2D"]
script = ExtResource("1_5otdq")
_sceneToLoad = ExtResource("2_8y0cv")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="TextureRect" type="TextureRect" parent="CanvasLayer"]
modulate = Color(0.726816, 0.6051, 0.491763, 1)
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -1486.9
offset_right = 1486.9
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_8y0cv")
expand_mode = 3
[node name="dialogic" type="Node2D" parent="."]
script = ExtResource("4_qjf71")
[node name="Dialogue" type="Node2D" parent="dialogic"]
script = ExtResource("5_ihldk")
_timelinesToPlay = PackedStringArray("disclaimer")
[node name="toggle" type="Node2D" parent="dialogic"]
script = ExtResource("6_8y0cv")
[connection signal="Dialogue" from="dialogic/Dialogue" to="dialogic" method="open"]
[connection signal="timelineEnded" from="dialogic/toggle" to="." method="LoadScene"]
+6 -19
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=98 format=3 uid="uid://gigb28qk8t12"]
[gd_scene load_steps=96 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"]
@@ -62,7 +62,6 @@
[ext_resource type="Texture2D" uid="uid://lvhbicmwqab5" path="res://art/farm/tilable grounds/böden/fruchtbarer wilder trockender boden.png" id="47_loeum"]
[ext_resource type="AudioStream" uid="uid://c43a6x43jkikl" path="res://audio/sfx/Farming/SFX_GettingWater_Well_01_Reverb.wav" id="49_d77e7"]
[ext_resource type="PackedScene" uid="uid://muuxxgvx33fp" path="res://prefabs/farm/duck.tscn" id="62_i36hd"]
[ext_resource type="Script" uid="uid://fvo04di6k7we" path="res://scripts/CSharp/Common/Animation/PenCollider.cs" id="63_uxa2m"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_wtdui"]
shader = ExtResource("13_7p0hq")
@@ -224,9 +223,6 @@ stream_0/stream = ExtResource("39_di1ed")
stream_1/stream = ExtResource("40_ceriq")
stream_2/stream = ExtResource("49_d77e7")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lwk6t"]
size = Vector2(1407.56, 1310.2)
[node name="BabushkaSceneFarmOutside2d" type="Node2D"]
script = ExtResource("34_e5b7x")
_sceneToLoad = ExtResource("2_taxvr")
@@ -2097,14 +2093,12 @@ collision_mask = 4
position = Vector2(1.75458, 76)
shape = SubResource("RectangleShape2D_2vojv")
[node name="Duck2" parent="YSorted" node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
z_index = 1
y_sort_enabled = true
[node name="Duck2" parent="YSorted" node_paths=PackedStringArray("_penTarget") instance=ExtResource("62_i36hd")]
position = Vector2(4374, 2652)
_vesna = NodePath("../Vesna/CharacterBody2D")
_runningSpeed = 2000.0
_slowSpeed = 1000.0
_minDistanceToVesna = 500.0
_penTarget = NodePath("../penSlot1")
[node name="penSlot1" type="Node2D" parent="YSorted"]
position = Vector2(-5480.62, 2109.14)
[node name="CanvasLayer" parent="." instance=ExtResource("32_2nee2")]
@@ -2179,13 +2173,6 @@ max_distance = 2e+07
playback_type = 2
script = ExtResource("40_w3jkj")
[node name="PenCollider" type="Area2D" parent="."]
script = ExtResource("63_uxa2m")
[node name="CollisionShape2D" type="CollisionShape2D" parent="PenCollider"]
position = Vector2(-4983.78, 2662.9)
shape = SubResource("RectangleShape2D_lwk6t")
[connection signal="FilledWateringCan" from="YSorted/Vesna" to="Audio/SFX/FillWater SFX2" method="PlayOneShot"]
[connection signal="WateringField" from="YSorted/Vesna/FarmingControls" to="Audio/SFX/Watering SFX" method="PlayOneShot"]
[connection signal="InteractedTool" from="YSorted/Brünnen/InteractionArea" to="YSorted/Vesna" method="TryFillWateringCan"]