From ddb5547b42670937b32c331bcc72669e151f5ad2 Mon Sep 17 00:00:00 2001 From: kziolkowski Date: Sun, 15 Jun 2025 16:41:36 +0200 Subject: [PATCH] Updated Startscreen and added second tutorial step --- dialog/yeli_intro_01.dtl | 14 +++++++------- prefabs/characters/Yeli.tscn | 2 +- project.godot | 3 ++- scenes/Babushka_scene_startMenu.tscn | 25 ++++++++++++++++--------- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/dialog/yeli_intro_01.dtl b/dialog/yeli_intro_01.dtl index 60185e2..e6799e2 100644 --- a/dialog/yeli_intro_01.dtl +++ b/dialog/yeli_intro_01.dtl @@ -1,15 +1,15 @@ join Yeli center -Yeli (_part_side): Hi Vesna! Nice to see you! +Yeli (_part_side): Hi Vesna! So nice to see you! Yeli: It's been so long! -[text_input text="How have you been?" var="PLAYERMOOD" placeholder="Awesome!" default="Good" allow_empty="true"] -Yeli: It's nice to hear that you've been {PLAYERMOOD}. -Yeli: There is so much to do on the farm. Would you like to help me? +[text_input text="How have you been?" var="PLAYERMOOD" placeholder="good" default="good" allow_empty="true"] +Yeli: {PLAYERMOOD} huh? Nice! +Yeli: Well, enough chitchat! There is so much to do on the farm. Would you like to help me? - Absolutely! Yeli: That's what I like to hear! - Yes! Yeli: Very good! -- When do I start? +- For sure! Yeli: Awesome! -Yeli: Ok then let's start with the tilling. In order to till the soil and plant something, you need a hoe. -Yeli: You can find it leaning against the back fence somewhere. Pick it up and come back to me. +Yeli: Ok then let's start with the tilling. In order to till the soil and plant something, you need a hoe or rake. +Yeli: You can find one leaning against the back fence somewhere. Pick it up and come back to me. leave Yeli diff --git a/prefabs/characters/Yeli.tscn b/prefabs/characters/Yeli.tscn index 3c2178a..1679129 100644 --- a/prefabs/characters/Yeli.tscn +++ b/prefabs/characters/Yeli.tscn @@ -206,7 +206,7 @@ text = "[E] talk" [node name="TalkingControl" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")] script = ExtResource("1_hn8at") _sprite = NodePath("AnimatedSprite") -_timelinesToPlay = PackedStringArray("yeli_intro_01") +_timelinesToPlay = PackedStringArray("yeli_intro_01", "yeli_intro_02") [node name="AnimatedSprite" type="AnimatedSprite2D" parent="TalkingControl"] y_sort_enabled = true diff --git a/project.godot b/project.godot index 60cef69..4a8be23 100644 --- a/project.godot +++ b/project.godot @@ -32,7 +32,8 @@ directories/dch_directory={ directories/dtl_directory={ "semi_cat": "res://dialog/semi_cat.dtl", "test_time_line": "res://dialog/test_time_line.dtl", -"yeli_intro_01": "res://dialog/yeli_intro_01.dtl" +"yeli_intro_01": "res://dialog/yeli_intro_01.dtl", +"yeli_intro_02": "res://dialog/yeli_intro_02.dtl" } variables={ "PLAYERMOOD": "Good" diff --git a/scenes/Babushka_scene_startMenu.tscn b/scenes/Babushka_scene_startMenu.tscn index ac7a358..001ef84 100644 --- a/scenes/Babushka_scene_startMenu.tscn +++ b/scenes/Babushka_scene_startMenu.tscn @@ -8,17 +8,24 @@ script = ExtResource("1_fj2fh") _sceneToLoad = ExtResource("2_r0y6o") -[node name="Background" type="Sprite2D" parent="."] -position = Vector2(880, 524) -scale = Vector2(1.2, 1.2) +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="TextureRect" type="TextureRect" parent="CanvasLayer"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 texture = ExtResource("1_qerdf") +expand_mode = 2 +stretch_mode = 6 -[node name="Start" type="Button" parent="Background"] -offset_left = 6.66665 -offset_top = 304.167 -offset_right = 52.6666 -offset_bottom = 335.167 +[node name="Start" type="Button" parent="CanvasLayer/TextureRect"] +offset_left = 571.0 +offset_top = 559.0 +offset_right = 617.0 +offset_bottom = 590.0 scale = Vector2(2, 2) text = "Start" -[connection signal="pressed" from="Background/Start" to="." method="LoadScene"] +[connection signal="pressed" from="CanvasLayer/TextureRect/Start" to="." method="LoadScene"]