Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add tutorial

+148 -18
+15 -1
Scenes/tutorial_layer/tutorial_layer.gd
··· 1 1 extends CanvasLayer 2 2 3 - func _on_button_pressed() -> void: 3 + @onready var intro_container: MarginContainer = $IntroContainer 4 + @onready var tutorial_container: MarginContainer = $TutorialContainer 5 + 6 + 7 + func _on_begin_button_pressed() -> void: 4 8 visible = false 5 9 get_tree().paused = false 10 + 11 + 12 + func _on_next_pressed() -> void: 13 + intro_container.visible = false 14 + tutorial_container.visible = true 15 + 16 + 17 + func _on_back_pressed() -> void: 18 + intro_container.visible = true 19 + tutorial_container.visible = false
+133 -17
Scenes/tutorial_layer/tutorial_layer.tscn
··· 1 - [gd_scene load_steps=8 format=3 uid="uid://dargaogktwt8h"] 1 + [gd_scene load_steps=10 format=3 uid="uid://dargaogktwt8h"] 2 2 3 3 [ext_resource type="Script" uid="uid://qll3h7wiodps" path="res://Scenes/tutorial_layer/tutorial_layer.gd" id="1_p7pcl"] 4 4 [ext_resource type="LabelSettings" uid="uid://dv2ya5871ubbv" path="res://Resources/label_settings/tutorial_text.tres" id="2_dkefk"] 5 5 [ext_resource type="Texture2D" uid="uid://dl5tfdpakeovp" path="res://Assets/sprites/illness_icon.png" id="3_24ww1"] 6 + [ext_resource type="FontFile" uid="uid://da2t6lyf41wty" path="res://Assets/fonts/open-sans/open-sans-bold.ttf" id="4_p7pcl"] 6 7 7 8 [sub_resource type="LabelSettings" id="LabelSettings_10da3"] 8 9 font_size = 32 ··· 27 28 shadow_size = 8 28 29 shadow_color = Color(0.103744, 0.103744, 0.103744, 0.745098) 29 30 31 + [sub_resource type="LabelSettings" id="LabelSettings_24ww1"] 32 + font = ExtResource("4_p7pcl") 33 + font_size = 48 34 + shadow_size = 8 35 + shadow_color = Color(0.103744, 0.103744, 0.103744, 0.745098) 36 + 30 37 [node name="TutorialLayer" type="CanvasLayer"] 31 38 script = ExtResource("1_p7pcl") 32 39 ··· 37 44 mouse_filter = 2 38 45 color = Color(0.243137, 0.211765, 0.290196, 0.717647) 39 46 40 - [node name="MarginContainer" type="MarginContainer" parent="."] 47 + [node name="IntroContainer" type="MarginContainer" parent="."] 41 48 anchors_preset = 15 42 49 anchor_right = 1.0 43 50 anchor_bottom = 1.0 ··· 47 54 size_flags_vertical = 4 48 55 mouse_filter = 0 49 56 50 - [node name="Control" type="Control" parent="MarginContainer"] 57 + [node name="Control" type="Control" parent="IntroContainer"] 51 58 layout_mode = 2 52 59 53 - [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/Control"] 60 + [node name="VBoxContainer" type="VBoxContainer" parent="IntroContainer/Control"] 54 61 layout_mode = 1 55 62 anchors_preset = 15 56 63 anchor_right = 1.0 ··· 60 67 theme_override_constants/separation = 36 61 68 alignment = 1 62 69 63 - [node name="Label" type="Label" parent="MarginContainer/Control/VBoxContainer"] 70 + [node name="Label" type="Label" parent="IntroContainer/Control/VBoxContainer"] 64 71 layout_mode = 2 65 72 text = "The Church of the Soultree was created once Soul magic was discovered, 66 73 and they would frequently make massive rituals to harness Soul fragments from believers. ··· 70 77 autowrap_mode = 2 71 78 justification_flags = 161 72 79 73 - [node name="Label2" type="Label" parent="MarginContainer/Control/VBoxContainer"] 80 + [node name="Label2" type="Label" parent="IntroContainer/Control/VBoxContainer"] 74 81 layout_mode = 2 75 82 text = "Members of the Church of the Soultree used soul magic for future sight, called Soulsearchers. 76 83 They saw a coming plague, they called it \"Absence\", and they kept using soul magic to look for a cure. ··· 80 87 autowrap_mode = 2 81 88 justification_flags = 161 82 89 83 - [node name="Label3" type="Label" parent="MarginContainer/Control/VBoxContainer"] 90 + [node name="Label3" type="Label" parent="IntroContainer/Control/VBoxContainer"] 84 91 layout_mode = 2 85 92 text = "Common symptoms of Absence are:" 86 93 label_settings = SubResource("LabelSettings_10da3") ··· 88 95 autowrap_mode = 2 89 96 justification_flags = 161 90 97 91 - [node name="Label4" type="Label" parent="MarginContainer/Control/VBoxContainer"] 98 + [node name="Label4" type="Label" parent="IntroContainer/Control/VBoxContainer"] 92 99 layout_mode = 2 93 100 text = "- Emotional numbness and apathy 94 101 - Cold fingers ··· 98 105 autowrap_mode = 2 99 106 justification_flags = 161 100 107 101 - [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/Control/VBoxContainer"] 108 + [node name="HBoxContainer" type="HBoxContainer" parent="IntroContainer/Control/VBoxContainer"] 102 109 layout_mode = 2 103 110 size_flags_vertical = 4 104 111 alignment = 1 105 112 106 - [node name="Label" type="Label" parent="MarginContainer/Control/VBoxContainer/HBoxContainer"] 113 + [node name="Label" type="Label" parent="IntroContainer/Control/VBoxContainer/HBoxContainer"] 107 114 layout_mode = 2 108 115 size_flags_vertical = 1 109 116 text = "Click the Infection icon ··· 111 118 label_settings = SubResource("LabelSettings_c4jnk") 112 119 vertical_alignment = 1 113 120 114 - [node name="TextureRect" type="TextureRect" parent="MarginContainer/Control/VBoxContainer/HBoxContainer"] 121 + [node name="TextureRect" type="TextureRect" parent="IntroContainer/Control/VBoxContainer/HBoxContainer"] 115 122 custom_minimum_size = Vector2(100, 128) 116 123 layout_mode = 2 117 124 size_flags_horizontal = 0 ··· 119 126 expand_mode = 1 120 127 stretch_mode = 4 121 128 122 - [node name="Label2" type="Label" parent="MarginContainer/Control/VBoxContainer/HBoxContainer"] 129 + [node name="Label2" type="Label" parent="IntroContainer/Control/VBoxContainer/HBoxContainer"] 123 130 layout_mode = 2 124 131 size_flags_vertical = 1 125 132 text = "to interact with a patient. Based on their dialogue and your analysis, ··· 128 135 horizontal_alignment = 1 129 136 vertical_alignment = 1 130 137 131 - [node name="Label5" type="Label" parent="MarginContainer/Control/VBoxContainer"] 138 + [node name="Label5" type="Label" parent="IntroContainer/Control/VBoxContainer"] 132 139 layout_mode = 2 133 140 text = "Send Priests to Absence sufferers and Doctors to everyone else." 134 141 label_settings = SubResource("LabelSettings_p7pcl") ··· 136 143 autowrap_mode = 2 137 144 justification_flags = 161 138 145 139 - [node name="Label6" type="Label" parent="MarginContainer/Control/VBoxContainer"] 146 + [node name="Label6" type="Label" parent="IntroContainer/Control/VBoxContainer"] 140 147 layout_mode = 2 141 148 text = "Reach the cured threshold to finish the day." 142 149 label_settings = SubResource("LabelSettings_p7pcl") ··· 144 151 autowrap_mode = 2 145 152 justification_flags = 161 146 153 147 - [node name="Button" type="Button" parent="MarginContainer/Control/VBoxContainer"] 154 + [node name="HBoxContainer2" type="HBoxContainer" parent="IntroContainer/Control/VBoxContainer"] 155 + layout_mode = 2 156 + alignment = 1 157 + 158 + [node name="Next" type="Button" parent="IntroContainer/Control/VBoxContainer/HBoxContainer2"] 159 + process_mode = 3 160 + custom_minimum_size = Vector2(192, 72) 161 + layout_mode = 2 162 + size_flags_horizontal = 4 163 + mouse_default_cursor_shape = 2 164 + theme_override_font_sizes/font_size = 32 165 + text = "Next" 166 + 167 + [node name="Begin2" type="Button" parent="IntroContainer/Control/VBoxContainer/HBoxContainer2"] 148 168 process_mode = 3 149 169 custom_minimum_size = Vector2(192, 72) 150 170 layout_mode = 2 151 171 size_flags_horizontal = 4 152 172 mouse_default_cursor_shape = 2 153 173 theme_override_font_sizes/font_size = 32 154 - text = "Begin" 174 + text = "Start" 175 + 176 + [node name="TutorialContainer" type="MarginContainer" parent="."] 177 + visible = false 178 + anchors_preset = 15 179 + anchor_right = 1.0 180 + anchor_bottom = 1.0 181 + grow_horizontal = 2 182 + grow_vertical = 2 183 + size_flags_horizontal = 4 184 + size_flags_vertical = 4 185 + mouse_filter = 0 155 186 156 - [connection signal="pressed" from="MarginContainer/Control/VBoxContainer/Button" to="." method="_on_button_pressed"] 187 + [node name="Control" type="Control" parent="TutorialContainer"] 188 + layout_mode = 2 189 + 190 + [node name="VBoxContainer" type="VBoxContainer" parent="TutorialContainer/Control"] 191 + layout_mode = 1 192 + anchors_preset = 15 193 + anchor_right = 1.0 194 + anchor_bottom = 1.0 195 + grow_horizontal = 2 196 + grow_vertical = 2 197 + theme_override_constants/separation = 36 198 + alignment = 1 199 + 200 + [node name="Label" type="Label" parent="TutorialContainer/Control/VBoxContainer"] 201 + layout_mode = 2 202 + text = "Tutorial:" 203 + label_settings = SubResource("LabelSettings_24ww1") 204 + horizontal_alignment = 1 205 + vertical_alignment = 1 206 + 207 + [node name="HBoxContainer" type="HBoxContainer" parent="TutorialContainer/Control/VBoxContainer"] 208 + layout_mode = 2 209 + size_flags_vertical = 4 210 + alignment = 1 211 + 212 + [node name="Label2" type="Label" parent="TutorialContainer/Control/VBoxContainer/HBoxContainer"] 213 + custom_minimum_size = Vector2(860.441, 0) 214 + layout_mode = 2 215 + text = "As citizens get sick a red icon will appear on the buildings:" 216 + label_settings = ExtResource("2_dkefk") 217 + horizontal_alignment = 1 218 + autowrap_mode = 2 219 + justification_flags = 161 220 + 221 + [node name="TextureRect" type="TextureRect" parent="TutorialContainer/Control/VBoxContainer/HBoxContainer"] 222 + custom_minimum_size = Vector2(0, 84.398) 223 + layout_mode = 2 224 + texture = ExtResource("3_24ww1") 225 + expand_mode = 2 226 + stretch_mode = 4 227 + 228 + [node name="Label3" type="Label" parent="TutorialContainer/Control/VBoxContainer"] 229 + custom_minimum_size = Vector2(860.441, 0) 230 + layout_mode = 2 231 + text = "When you click on the icon you will be presented with some information about the case, 232 + you must decide weather to send one of your Doctors and Priests. 233 + 234 + Once you send out all of your reserve of a either you will be unable to send out another until they return to the curch. 235 + 236 + If you are unable to click on an icon with 0 people to deploy and you cannot deploy a depleted unit until they return. 237 + 238 + If you enter an event with 0 Doctors and cann't wait for them to return you may close the window by clicking the X, 239 + however doing doing so will cause the count of sick citizens to rise! 240 + 241 + Try to cure enough citizens before the entire town suffers!" 242 + label_settings = ExtResource("2_dkefk") 243 + horizontal_alignment = 1 244 + autowrap_mode = 2 245 + justification_flags = 161 246 + 247 + [node name="HBoxContainer2" type="HBoxContainer" parent="TutorialContainer/Control/VBoxContainer"] 248 + layout_mode = 2 249 + alignment = 1 250 + 251 + [node name="Back" type="Button" parent="TutorialContainer/Control/VBoxContainer/HBoxContainer2"] 252 + process_mode = 3 253 + custom_minimum_size = Vector2(192, 72) 254 + layout_mode = 2 255 + size_flags_horizontal = 4 256 + mouse_default_cursor_shape = 2 257 + theme_override_font_sizes/font_size = 32 258 + text = "Back" 259 + 260 + [node name="Begin" type="Button" parent="TutorialContainer/Control/VBoxContainer/HBoxContainer2"] 261 + process_mode = 3 262 + custom_minimum_size = Vector2(192, 72) 263 + layout_mode = 2 264 + size_flags_horizontal = 4 265 + mouse_default_cursor_shape = 2 266 + theme_override_font_sizes/font_size = 32 267 + text = "Start" 268 + 269 + [connection signal="pressed" from="IntroContainer/Control/VBoxContainer/HBoxContainer2/Next" to="." method="_on_next_pressed"] 270 + [connection signal="pressed" from="IntroContainer/Control/VBoxContainer/HBoxContainer2/Begin2" to="." method="_on_begin_button_pressed"] 271 + [connection signal="pressed" from="TutorialContainer/Control/VBoxContainer/HBoxContainer2/Back" to="." method="_on_back_pressed"] 272 + [connection signal="pressed" from="TutorialContainer/Control/VBoxContainer/HBoxContainer2/Begin" to="." method="_on_begin_button_pressed"]