Dev de la démo

* Modification de l'apparence de l'UI des dialogues
* Changement de l'ordre de déblocage des mutations
* Ajout d'une confirmation pour l'abandon
* Ajout de la scène de fin avec la base Boréa, en tant que fin de démo
* Modification des icône de durée de vie, temps de pousse, et de mort
* Ajout d'un icône au dessus du joueur quand il n'a plus d'énergie
* Amélioration des dialogues du jeu
* Changement du modèle du téléphone
* Ajout de cellule d'énergie et de cellule de talion trouvable sur la carte
* Il est à nouveau possible de se recharger après la fin d'une région
* Buff des mutations ancien sociale et solide
* Modification de la mutation fertile (ne donne de gain de graine qu'à la maturation)
* Ajout d'une récupération automatique des graines
* Ajout de deux cartons de tutoriel ainsi qu'une option pour les revoir dans l'aide de jeu
* Amélioration générale du tutoriel
* Ajout d'un écran titre digne de ce nom
* Lors de l'arrivée à destination, ne téléporte plus le joueur sur une map vide, mais directement dans les lieux de cinématique
* Ajout graphique de plus de pattern de mousse et de roche
* Le talion apparait maintenant sur toute la carte
* La roche peut désormais apparaitre sur la zone de départ
* Ajout dud modificateur de région Canyon
* Equilibrage général
* Fix de bugs en tout genre
This commit is contained in:
2026-05-27 19:13:32 +02:00
parent 7764943714
commit 7b09f2ba7c
289 changed files with 8802 additions and 1520 deletions

View File

@@ -1,34 +1,142 @@
[gd_scene format=3 uid="uid://c5a32n6rjjlnt"]
[ext_resource type="Shader" uid="uid://cuni3ggtw2uuy" path="res://common/vfx/materials/shaders/blur.gdshader" id="1_yknhu"]
[ext_resource type="Script" uid="uid://di3p2tmuw6ack" path="res://gui/credits/scripts/credits.gd" id="1_kip8e"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="2_luv2b"]
[ext_resource type="Texture2D" uid="uid://cdpqg3pkjcw2h" path="res://stages/title_screen/assets/textures/title.png" id="3_urbel"]
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="4_5k6jv"]
[ext_resource type="PackedScene" uid="uid://bpy6sqa71gcfm" path="res://gui/credits/socials/survey.tscn" id="5_5k6jv"]
[ext_resource type="PackedScene" uid="uid://bc3byq8e45ejj" path="res://gui/credits/socials/steam.tscn" id="5_luv2b"]
[ext_resource type="PackedScene" uid="uid://c8flevrkelpvy" path="res://gui/credits/socials/instagram.tscn" id="5_yknhu"]
[ext_resource type="Texture2D" uid="uid://baaujfw8piywi" path="res://common/icons/dna.svg" id="6_kip8e"]
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="7_urbel"]
[ext_resource type="Texture2D" uid="uid://b75k12a4wc5t4" path="res://common/icons/book-2.svg" id="8_a8ny4"]
[ext_resource type="Texture2D" uid="uid://dbv5hm7lyi1f6" path="res://common/icons/infinity.svg" id="9_xl2r5"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_67c4d"]
shader = ExtResource("1_yknhu")
shader_parameter/strength = 3.3
shader_parameter/mix_percentage = 0.3
[sub_resource type="LabelSettings" id="LabelSettings_m5waa"]
font = ExtResource("7_urbel")
font_size = 20
[sub_resource type="LabelSettings" id="LabelSettings_5k6jv"]
font = ExtResource("7_urbel")
font_size = 20
[sub_resource type="Animation" id="Animation_5k6jv"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/GridContainer:theme_override_constants/h_separation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [544]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ColorRect:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MarginContainer:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="Animation" id="Animation_kip8e"]
resource_name = "appear"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/GridContainer:theme_override_constants/h_separation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [2000, 0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ColorRect:modulate")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.033333335, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MarginContainer:modulate")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.43333334, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.033333335),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_a8ny4"]
_data = {
&"RESET": SubResource("Animation_5k6jv"),
&"appear": SubResource("Animation_kip8e")
}
[node name="Credits" type="CanvasLayer" unique_id=180964898]
layer = 99
script = ExtResource("1_kip8e")
[node name="ColorRect" type="ColorRect" parent="." unique_id=2001966466]
material = SubResource("ShaderMaterial_67c4d")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.0352941, 0.0196078, 0.12549, 0.705882)
color = Color(0.03529412, 0.019607844, 0.1254902, 0.8)
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=1349934988]
anchors_preset = 15
@@ -40,6 +148,8 @@ theme = ExtResource("2_luv2b")
[node name="GridContainer" type="GridContainer" parent="MarginContainer" unique_id=1426452837]
layout_mode = 2
theme_override_constants/h_separation = 544
theme_override_constants/v_separation = 448
columns = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer" unique_id=1825004235]
@@ -59,21 +169,64 @@ stretch_mode = 5
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=215880453]
layout_mode = 2
text = "THANKS_FOR_PLAYING"
text = "THANKS_FOR_PLAYING_DEMO"
label_settings = ExtResource("4_5k6jv")
horizontal_alignment = 1
[node name="SurveyButton" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=1337726269 instance=ExtResource("5_5k6jv")]
layout_mode = 2
size_flags_horizontal = 4
[node name="InstagramButton" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=68880754 instance=ExtResource("5_yknhu")]
layout_mode = 2
[node name="SteamButton" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=1181450581 instance=ExtResource("5_luv2b")]
layout_mode = 2
link = "https://store.steampowered.com/app/4444510/Seeding_The_Wasteland/"
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=465861616]
modulate = Color(1, 0.6509804, 0.09019608, 1)
layout_mode = 2
theme_override_constants/separation = 4
[node name="Label2" type="Label" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2" unique_id=1013363580]
layout_mode = 2
text = "IN_THE_COMPLETE_GAME"
label_settings = ExtResource("4_5k6jv")
horizontal_alignment = 1
[node name="VBoxContainer" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2" unique_id=115205131]
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer" unique_id=148775652]
layout_mode = 2
texture = ExtResource("6_kip8e")
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer" unique_id=1109596403]
layout_mode = 2
text = "TWICE_MORE_MUTATIONS"
label_settings = SubResource("LabelSettings_m5waa")
[node name="VBoxContainer2" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2" unique_id=921966638]
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer2" unique_id=32161915]
layout_mode = 2
texture = ExtResource("8_a8ny4")
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer2" unique_id=578114248]
layout_mode = 2
text = "A_3_4_HOURS_STORY"
label_settings = SubResource("LabelSettings_m5waa")
[node name="VBoxContainer3" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2" unique_id=1755435556]
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer3" unique_id=1636037226]
layout_mode = 2
texture = ExtResource("9_xl2r5")
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer/VBoxContainer2/VBoxContainer3" unique_id=222316161]
layout_mode = 2
text = "AN_INFINITE_MODE"
label_settings = SubResource("LabelSettings_m5waa")
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/GridContainer" unique_id=105267250]
layout_mode = 2
size_flags_horizontal = 3
@@ -116,6 +269,22 @@ layout_mode = 2
text = "MUSIC_SOUND_DESIGN_AND_WRITING"
horizontal_alignment = 1
[node name="CreditsLine4" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1682772698]
layout_mode = 2
size_flags_vertical = 4
alignment = 1
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=1820679506]
layout_mode = 2
text = "Eva"
label_settings = SubResource("LabelSettings_5k6jv")
horizontal_alignment = 1
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=557243140]
layout_mode = 2
text = "ART"
horizontal_alignment = 1
[node name="CreditsLine3" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=520097904]
layout_mode = 2
alignment = 1
@@ -131,21 +300,6 @@ layout_mode = 2
text = "DEV_AND_GAME_DESIGN"
horizontal_alignment = 1
[node name="CreditsLine4" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1682772698]
layout_mode = 2
alignment = 1
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=1820679506]
layout_mode = 2
text = "Eva"
label_settings = SubResource("LabelSettings_5k6jv")
horizontal_alignment = 1
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=557243140]
layout_mode = 2
text = "ART"
horizontal_alignment = 1
[node name="CreditsLine5" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=393247738]
layout_mode = 2
alignment = 1
@@ -206,6 +360,21 @@ layout_mode = 2
text = "ART_GAME_JAM"
horizontal_alignment = 1
[node name="CreditsLine9" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=2120828630]
layout_mode = 2
alignment = 1
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=1934495268]
layout_mode = 2
text = "Margot Freuchet"
label_settings = SubResource("LabelSettings_5k6jv")
horizontal_alignment = 1
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=720118996]
layout_mode = 2
text = "TRAILER"
horizontal_alignment = 1
[node name="CreditsLine10" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1089087276]
layout_mode = 2
alignment = 1
@@ -221,17 +390,6 @@ layout_mode = 2
text = "SPLASH_ART"
horizontal_alignment = 1
[node name="CreditsLine9" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=2120828630]
layout_mode = 2
alignment = 1
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=1934495268]
layout_mode = 2
text = "Margot Freuchet"
label_settings = SubResource("LabelSettings_5k6jv")
horizontal_alignment = 1
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=720118996]
layout_mode = 2
text = "TRAILER"
horizontal_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1455518318]
unique_name_in_owner = true
libraries/ = SubResource("AnimationLibrary_a8ny4")

View File

@@ -0,0 +1,5 @@
extends CanvasLayer
class_name Credits
func appear():
%AnimationPlayer.play("appear")

View File

@@ -0,0 +1 @@
uid://di3p2tmuw6ack

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://b4y8dnr0nugke"]
[gd_scene format=3 uid="uid://b4y8dnr0nugke"]
[ext_resource type="Script" uid="uid://c0qys72ixawvk" path="res://addons/dialogic/Resources/dialogic_layout_base.gd" id="1_kfib2"]
[node name="BaseLayout" type="Node"]
[node name="BaseLayout" type="Node" unique_id=1574543838]
script = ExtResource("1_kfib2")
metadata/_custom_type_script = "uid://c0qys72ixawvk"

View File

@@ -76,6 +76,7 @@ func update_rotation(delta):
func set_announce_object(object := announce_object):
Pointer.action_disabled = not object
if is_node_ready() and object:
for children in %AnnouceObject.get_children():
children.queue_free()

View File

@@ -6,7 +6,6 @@
[ext_resource type="PackedScene" uid="uid://brfsapvj2quxm" path="res://gui/game/energy_info/energy_info.tscn" id="4_2wykm"]
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="6_2wykm"]
[ext_resource type="PackedScene" uid="uid://df0eop555wfj5" path="res://gui/game/objective_progress_bar/objective_progress_bar.tscn" id="6_dr1y2"]
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="6_id0t5"]
[ext_resource type="PackedScene" uid="uid://clicjf8ts51h8" path="res://gui/game/inventory_gui/inventory_gui.tscn" id="9_id0t5"]
[ext_resource type="PackedScene" uid="uid://cgbjmw75alfeo" path="res://gui/game/help/help.tscn" id="10_id0t5"]
@@ -20,10 +19,6 @@ fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1.5, 0.5)
[sub_resource type="LabelSettings" id="LabelSettings_id0t5"]
font = ExtResource("6_2wykm")
font_size = 40
[sub_resource type="Animation" id="Animation_rcm5b"]
length = 0.001
tracks/0/type = "value"
@@ -39,6 +34,45 @@ tracks/0/keys = {
"values": [0]
}
[sub_resource type="Animation" id="Animation_h6540"]
resource_name = "bounce"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 0,
"values": []
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 0,
"values": []
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("%ObjectiveLabel/..:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 0,
"values": []
}
[sub_resource type="Animation" id="Animation_ajf5p"]
resource_name = "bump"
length = 0.4
@@ -58,10 +92,12 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jomh8"]
_data = {
&"RESET": SubResource("Animation_rcm5b"),
&"bounce": SubResource("Animation_h6540"),
&"bump": SubResource("Animation_ajf5p")
}
[node name="GameGui" type="CanvasLayer" unique_id=274698556]
layer = 2
script = ExtResource("1_udau0")
[node name="NoEnergyVignette" type="TextureRect" parent="." unique_id=1917087264]
@@ -89,6 +125,9 @@ grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="Help" parent="." unique_id=152252336 instance=ExtResource("10_id0t5")]
unique_name_in_owner = true
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=2054297293]
anchors_preset = 15
anchor_right = 1.0
@@ -115,23 +154,6 @@ layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="SimplePlantPointScore" type="HBoxContainer" parent="MarginContainer/VBoxContainer" unique_id=973032799]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 0
alignment = 1
[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer/SimplePlantPointScore" unique_id=534916675]
layout_mode = 2
texture = ExtResource("6_id0t5")
[node name="SimplePlantPointScoreLabel" type="Label" parent="MarginContainer/VBoxContainer/SimplePlantPointScore" unique_id=1961035876]
unique_name_in_owner = true
layout_mode = 2
text = "0 Plant Point"
label_settings = SubResource("LabelSettings_id0t5")
horizontal_alignment = 1
[node name="ObjectiveContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer" unique_id=946367772]
layout_mode = 2
mouse_filter = 2
@@ -142,7 +164,7 @@ theme_override_constants/margin_bottom = 0
[node name="ObjectiveLabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/ObjectiveContainer" unique_id=2044989003]
unique_name_in_owner = true
custom_minimum_size = Vector2(600, 0)
custom_minimum_size = Vector2(1000, 0)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
@@ -155,13 +177,12 @@ theme_override_fonts/normal_font = ExtResource("6_2wykm")
theme_override_fonts/bold_font = ExtResource("6_2wykm")
theme_override_fonts/bold_italics_font = ExtResource("6_2wykm")
theme_override_fonts/italics_font = ExtResource("6_2wykm")
theme_override_font_sizes/normal_font_size = 40
theme_override_font_sizes/bold_font_size = 40
theme_override_font_sizes/bold_italics_font_size = 40
theme_override_font_sizes/italics_font_size = 40
theme_override_font_sizes/mono_font_size = 40
theme_override_font_sizes/normal_font_size = 50
theme_override_font_sizes/bold_font_size = 50
theme_override_font_sizes/bold_italics_font_size = 50
theme_override_font_sizes/italics_font_size = 50
theme_override_font_sizes/mono_font_size = 50
bbcode_enabled = true
text = "Action en cours Action en cours Action en cours Action en cours Action en cours "
fit_content = true
horizontal_alignment = 1
@@ -173,6 +194,3 @@ libraries/ = SubResource("AnimationLibrary_jomh8")
layout_mode = 2
size_flags_horizontal = 1
size_flags_vertical = 8
[node name="Help" parent="MarginContainer" unique_id=152252336 instance=ExtResource("10_id0t5")]
layout_mode = 2

File diff suppressed because it is too large Load Diff

View File

@@ -2,9 +2,9 @@
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="1_yxwcd"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="2_wxnr5"]
[ext_resource type="Texture2D" uid="uid://d3ksdxepcjoot" path="res://common/icons/calendar-week.svg" id="3_t30ml"]
[ext_resource type="Texture2D" uid="uid://cgmxjom200bej" path="res://common/icons/chevrons-up.svg" id="4_d4ybk"]
[ext_resource type="Texture2D" uid="uid://b34qiqb1mslm" path="res://common/icons/clock-up.svg" id="4_yxwcd"]
[ext_resource type="Texture2D" uid="uid://dhy4ewvqvlxyi" path="res://common/icons/clock.svg" id="5_3lk2g"]
[ext_resource type="Texture2D" uid="uid://bgkivv66x80oj" path="res://common/icons/clock-death.svg" id="5_wxnr5"]
[ext_resource type="Texture2D" uid="uid://c2qg7ikkylfv4" path="res://common/icons/seeds.svg" id="6_tr36d"]
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="7_ubf5w"]
[ext_resource type="Texture2D" uid="uid://cymrmhsihkj44" path="res://common/icons/recharge.svg" id="8_uvt1i"]
@@ -38,7 +38,7 @@ theme_override_constants/separation = 4
custom_minimum_size = Vector2(25, 25)
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("3_t30ml")
texture = ExtResource("5_3lk2g")
expand_mode = 1
stretch_mode = 5
@@ -56,7 +56,7 @@ theme_override_constants/separation = 4
custom_minimum_size = Vector2(25, 25)
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("4_d4ybk")
texture = ExtResource("4_yxwcd")
expand_mode = 1
stretch_mode = 5
@@ -74,7 +74,7 @@ theme_override_constants/separation = 4
custom_minimum_size = Vector2(25, 25)
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_3lk2g")
texture = ExtResource("5_wxnr5")
expand_mode = 1
stretch_mode = 5

View File

@@ -0,0 +1,118 @@
extends Control
class_name Help
signal tutorial_passed
func _ready():
%EnergyTutorial.hide()
%PlantInfoTutorial.hide()
%MutationTutorial.hide()
%PlantpointsTutorial.hide()
func display_energy_tutorial():
%EnergyTutorialInfo.update(3,3,false)
%EnergyTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func display_plant_info_tutorial(
with_card_info : CardInfo = get_false_plant_card_info()
):
%PlantInfoCard.info = with_card_info
%PlantInfoCard.update()
%PlantInfoTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func display_mutations_tutorial(with_card_info : CardInfo = get_false_plant_card_info(true)):
%MutationCard.info = with_card_info
%MutationCard.update()
%MutationTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func display_plant_point_tutorial():
%PlantPointTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func get_false_plant_card_info(with_mutation = false):
var data = PlantData.new()
var info = CardInfo.new(
data.plant_name,
tr("MATURE") if data.is_mature() else tr("JUVENILE")
)
info.important_stat_icon = Plant.SCORE_ICON
info.important_stat_text = "%d" % 0
info.type_icon = Plant.PLANT_TYPE_ICON
info.stats.append_array([
CardStatInfo.new(
str(1),
Plant.DURATION_ICON
),
CardStatInfo.new(
str(2),
Plant.GROWING_ICON
),
CardStatInfo.new(
str(6),
Plant.LIFETIME_ICON
),
CardStatInfo.new(
str(1),
Plant.SEED_ICON
),
])
if with_mutation:
info.sections.append(AncientMutation.new().card_section())
return info
func _on_energy_button_tutorial_button_down():
display_energy_tutorial()
func _on_plant_button_tutorial_button_down():
display_plant_info_tutorial()
func _on_mutation_button_tutorial_button_down():
display_mutations_tutorial()
func _on_plant_point_button_tutorial_button_down():
display_plant_point_tutorial()
func _on_energy_ok_button_button_down():
%EnergyTutorialAnimationPlayer.play_backwards("appear")
tutorial_passed.emit()
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)
func _on_plant_info_ok_button_button_down():
%PlantInfoTutorialAnimationPlayer.play_backwards("appear")
tutorial_passed.emit()
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)
func _on_mutation_ok_button_button_down():
%MutationTutorialAnimationPlayer.play_backwards("appear")
tutorial_passed.emit()
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)
func _on_plant_point_ok_button_button_down():
%PlantPointTutorialAnimationPlayer.play_backwards("appear")
tutorial_passed.emit()
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)

View File

@@ -0,0 +1 @@
uid://drhkq61wr1k3h

View File

@@ -58,6 +58,7 @@ script = ExtResource("1_0pm4g")
[node name="Background" type="ColorRect" parent="." unique_id=527935985]
unique_name_in_owner = true
modulate = Color(1, 1, 1, 0)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0

View File

@@ -12,15 +12,15 @@ var score_mirror :
var objective_text : String = "" : set = set_objective_text
@onready var help : Help = %Help
func _ready():
GameInfo.game_data.current_region_data.updated.connect(_on_region_updated)
GameInfo.game_data.player_data.updated.connect(_on_player_updated)
%ObjectiveProgressBar.visible = (
not GameInfo.game_data.current_run.story_step is TutorialStoryStep
and not GameInfo.game_data.current_region_data.objective_disabled
)
%SimplePlantPointScore.visible = GameInfo.game_data.current_run.story_step is TutorialStoryStep
show_progress_bar()
show_energy()
show_help()
state_update(GameInfo.game_data.current_region_data)
player_update(GameInfo.game_data.player_data, false)
@@ -91,11 +91,6 @@ func score_update(with_animation = true):
)
else:
%ObjectiveProgressBar.set_progress(objective_progression)
if score_mirror > 1:
%SimplePlantPointScoreLabel.text = tr("%d_PLANT_POINTS") % score_mirror
else :
%SimplePlantPointScoreLabel.text = tr("%d_PLANT_POINT") % score_mirror
func state_update(region_data : RegionData):
if region_data.state == RegionData.State.SUCCEEDED:
@@ -153,13 +148,24 @@ func spawn_score_particle(
func set_objective_text(v : String = objective_text):
print(v)
var old_v = objective_text
objective_text = v
if is_node_ready():
if is_node_ready() and old_v != objective_text:
if (objective_text != "" and objective_text != %ObjectiveLabel.text):
%ObjectiveAnimationPlayer.play("bump")
AudioManager.play_sfx("Screen_interaction")
%ObjectiveLabel.text = v
func show_energy(shown = true):
%EnergyInfo.visible = shown
func show_progress_bar(shown = true):
%ObjectiveProgressBar.visible = shown
func show_help(shown = true):
%Help.visible = shown
func _on_player_action_tried_without_energy():
$AnimationPlayer.play("no_energy_left")

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c7i8bkcu0u72e"
path="res://.godot/imported/energy_action.png-78edf534b0f3cf8bde7178e2b27a0840.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/energy_action.png"
dest_files=["res://.godot/imported/energy_action.png-78edf534b0f3cf8bde7178e2b27a0840.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://btwx21fgon3dg"
path="res://.godot/imported/energy_recharge.png-a4a18ca1bcc25ffb8310b07394462ac8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/energy_recharge.png"
dest_files=["res://.godot/imported/energy_recharge.png-a4a18ca1bcc25ffb8310b07394462ac8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djkeblhpnmlmj"
path="res://.godot/imported/energy_ui.png-3270746347ccdd2f797fdf43c6576ee8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/energy_ui.png"
dest_files=["res://.godot/imported/energy_ui.png-3270746347ccdd2f797fdf43c6576ee8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cw48n6wwm3532"
path="res://.godot/imported/plant_0.png-1b1b48171b0989155a38f07d25f287b2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/plant_0.png"
dest_files=["res://.godot/imported/plant_0.png-1b1b48171b0989155a38f07d25f287b2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://u5bnylgucusj"
path="res://.godot/imported/plant_1.png-a1d3bc512419a4ed928835653975edd0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/plant_1.png"
dest_files=["res://.godot/imported/plant_1.png-a1d3bc512419a4ed928835653975edd0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dxlmkke65jq02"
path="res://.godot/imported/plant_2.png-f84030e7239b73a42d9978b90962f9bc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/plant_2.png"
dest_files=["res://.godot/imported/plant_2.png-f84030e7239b73a42d9978b90962f9bc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://36fgprolvrk6"
path="res://.godot/imported/plant_4.png-784468d11f7412a9c8e4803bc1970149.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/plant_4.png"
dest_files=["res://.godot/imported/plant_4.png-784468d11f7412a9c8e4803bc1970149.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cuqx6w5eo7j3"
path="res://.godot/imported/plant_points.png-4f47be7a779fd1b37b6784812ea3fe31.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gui/game/tutorial/assets/screenshots/plant_points.png"
dest_files=["res://.godot/imported/plant_points.png-4f47be7a779fd1b37b6784812ea3fe31.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -43,7 +43,12 @@ var success = false
"RECHARGE_IN_THE_RECHARGE_STATION",
(func ():
return region and region.data and not region.data.in_passing_day_animation and region.data.day != 1),
(func (): GameInfo.game_data.player_data.inventory.add_item(Pickaxe.new()))
(func ():
game_gui.show_energy()
game_gui.show_help()
game_gui.help.display_energy_tutorial()
await game_gui.help.tutorial_passed
GameInfo.game_data.player_data.inventory.add_item(Pickaxe.new()))
),
Step.new(
"DIG_A_TALION_VEIN_WITH_SHOVEL",
@@ -60,17 +65,24 @@ var success = false
func(i:Item): return i is Seed
) != -1)
),
Step.new(
"DROP_SEED_WITH_KEY",
(func ():
return (
Input.is_action_pressed("drop"))
)
),
Step.new(
"PLANT_SEED_IN_FERTILE_ZONE",
(func ():
for e in region.entity_container.get_children():
if e is Plant:
display_plant_info_tutorial(e.card_info())
game_gui.help.display_plant_info_tutorial(e.card_info())
return true
return false)
),
Step.new(
"GAIN_FIRST_PLANT_POINT",
"WAIT_FOR_THE_PLANT_MATURATION",
(func ():
return region and region.data and not region.data.in_passing_day_animation and region.data.get_score() != 0),
(func (): GameInfo.game_data.player_data.inventory.add_item(Fork.new()))
@@ -88,24 +100,27 @@ var success = false
(func ():
for s in player.data.inventory.seeds:
if s is Seed and len(s.plant_mutations) > 0:
display_mutations_tutorial(s.card_info())
game_gui.help.display_mutations_tutorial(s.card_info())
return true
return false),
(func ():
await game_gui.help.tutorial_passed
game_gui.show_progress_bar()
game_gui.help.display_plant_point_tutorial())
),
Step.new(
"DROP_SEED_WITH_KEY",
(func ():
return (
Input.is_action_pressed("drop"))
)
"HAVE_3_PLANT_POINTS_SIMULTANEOUSLY",
(func (): return region.data.get_score() >= 3)
),
]
func _ready():
setup_gui()
show()
%PlantInfoTutorial.hide()
%MutationTutorial.hide()
game_gui.show_energy(false)
game_gui.show_progress_bar(false)
game_gui.show_help(false)
func setup_gui():
for s in %Steps.get_children():
@@ -145,37 +160,6 @@ func finish_tutorial():
succeded.emit()
success = true
func display_plant_info_tutorial(with_card_info : CardInfo):
%PlantInfoCard.info = with_card_info
AudioManager.play_sfx("Reveal")
%PlantInfoCard.update()
%PlantInfoTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func display_mutations_tutorial(with_card_info : CardInfo):
%MutationCard.info = with_card_info
AudioManager.play_sfx("Reveal")
%MutationCard.update()
%MutationTutorialAnimationPlayer.play("appear")
Pointer.action_disabled = true
func _on_plant_info_ok_button_button_down():
%PlantInfoTutorialAnimationPlayer.play_backwards("appear")
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)
func _on_mutation_ok_button_button_down():
%MutationTutorialAnimationPlayer.play_backwards("appear")
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
func():
Pointer.action_disabled = false
)
class Step:
var text : String : get = get_text

View File

@@ -4,19 +4,6 @@
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="2_1wikm"]
[ext_resource type="Texture2D" uid="uid://1ynlp05wj0hm" path="res://common/icons/rocket.svg" id="3_8kuag"]
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="4_1wikm"]
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="6_hgus1"]
[ext_resource type="PackedScene" uid="uid://753270jjxmfg" path="res://gui/game/card/card.tscn" id="6_vg3tr"]
[ext_resource type="Texture2D" uid="uid://bgi4rc50par30" path="res://common/icons/arrow-narrow-right.svg" id="7_6k6bq"]
[ext_resource type="Texture2D" uid="uid://bd6qddv5ihkjr" path="res://common/icons/bucket.svg" id="7_ug5yk"]
[ext_resource type="Script" uid="uid://dj2pv1hiwjfv0" path="res://gui/game/card/scripts/card_info.gd" id="8_hgus1"]
[ext_resource type="Script" uid="uid://dgbh38j13g5kn" path="res://gui/game/card/scripts/card_section_info.gd" id="9_6k6bq"]
[ext_resource type="Texture2D" uid="uid://b752eqq4cm7ve" path="res://common/icons/building-factory-2.svg" id="10_58nqq"]
[ext_resource type="Script" uid="uid://b4tkium34c831" path="res://gui/game/card/scripts/card_stat_info.gd" id="11_ebkn5"]
[ext_resource type="Texture2D" uid="uid://dg00xnpp6ixls" path="res://common/icons/server-2.svg" id="12_2pmxd"]
[ext_resource type="Texture2D" uid="uid://baaujfw8piywi" path="res://common/icons/dna.svg" id="13_1lrfc"]
[ext_resource type="Texture2D" uid="uid://bsvxhafoxwmw0" path="res://common/icons/cube-3d-sphere.svg" id="14_e6tpi"]
[ext_resource type="Texture2D" uid="uid://7oh782g7ngop" path="res://common/icons/arrow-narrow-left.svg" id="17_58nqq"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="18_6k6bq"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_x7cwm"]
bg_color = Color(0.18, 0.18, 0.18, 0.48235294)
@@ -29,141 +16,6 @@ corner_radius_bottom_left = 20
font = ExtResource("4_1wikm")
font_size = 20
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ebkn5"]
[sub_resource type="Resource" id="Resource_ditr3"]
script = ExtResource("9_6k6bq")
title_text = "Mutations"
title_icon = ExtResource("10_58nqq")
text = "This is a mutation"
metadata/_custom_type_script = "uid://dgbh38j13g5kn"
[sub_resource type="Resource" id="Resource_ikhlb"]
script = ExtResource("11_ebkn5")
text = "8"
icon = ExtResource("12_2pmxd")
metadata/_custom_type_script = "uid://b4tkium34c831"
[sub_resource type="Resource" id="Resource_puixe"]
script = ExtResource("8_hgus1")
title = "Hello"
subtitle = "Mature"
texture = ExtResource("13_1lrfc")
important_stat_text = "8"
important_stat_icon = ExtResource("7_ug5yk")
stats = Array[ExtResource("11_ebkn5")]([SubResource("Resource_ikhlb")])
sections = Array[ExtResource("9_6k6bq")]([SubResource("Resource_ditr3")])
metadata/_custom_type_script = "uid://dj2pv1hiwjfv0"
[sub_resource type="Animation" id="Animation_6k6bq"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("MarginContainer:theme_override_constants/separation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [12]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:modulate:a")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [1.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Background:modulate:a")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [1.0]
}
[sub_resource type="Animation" id="Animation_58nqq"]
resource_name = "appear"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("MarginContainer:theme_override_constants/separation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.06666666, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [183, 12]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:modulate:a")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Background:modulate:a")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.06666667, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 0.8]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ebkn5"]
_data = {
&"RESET": SubResource("Animation_6k6bq"),
&"appear": SubResource("Animation_58nqq")
}
[node name="Tutorial" type="CanvasLayer" unique_id=36887292]
script = ExtResource("1_ie1q8")
metadata/_edit_horizontal_guides_ = [369.0]
@@ -208,267 +60,3 @@ label_settings = SubResource("LabelSettings_8kuag")
[node name="Steps" type="VBoxContainer" parent="MarginContainer/TutorialStepsPanelContainer/MarginContainer/VBoxContainer" unique_id=125170550]
unique_name_in_owner = true
layout_mode = 2
[node name="PlantInfoTutorial" type="Control" parent="." unique_id=1586592931]
unique_name_in_owner = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Background" type="ColorRect" parent="PlantInfoTutorial" unique_id=35513528]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.037180007, 0.020800002, 0.13, 1)
[node name="MarginContainer" type="VBoxContainer" parent="PlantInfoTutorial" unique_id=1757534024]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 12
alignment = 1
[node name="Title" type="Label" parent="PlantInfoTutorial/MarginContainer" unique_id=1842689362]
layout_mode = 2
text = "PLANTS_INFO"
label_settings = ExtResource("6_hgus1")
horizontal_alignment = 1
[node name="Subtitle" type="Label" parent="PlantInfoTutorial/MarginContainer" unique_id=656340742]
layout_mode = 2
text = "OBTAIN_INFORMATION_ON_PLANTS_WHILE_HOVERING_PLANTS_BASE"
horizontal_alignment = 1
[node name="GridContainer" type="GridContainer" parent="PlantInfoTutorial/MarginContainer" unique_id=1124442982]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
columns = 3
[node name="VBoxContainer" type="VBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer" unique_id=1598939949]
layout_mode = 2
theme_override_constants/separation = 8
[node name="HBoxContainer" type="HBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer" unique_id=1972134386]
layout_mode = 2
alignment = 1
[node name="Label" type="RichTextLabel" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer/HBoxContainer" unique_id=263525139]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
bbcode_enabled = true
text = "PLANT_NAME_TEXT"
fit_content = true
scroll_active = false
vertical_alignment = 1
[node name="TextureRect" type="TextureRect" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer/HBoxContainer" unique_id=1507687253]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
texture = ExtResource("7_6k6bq")
stretch_mode = 5
[node name="HBoxContainer3" type="HBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer" unique_id=483641916]
layout_mode = 2
alignment = 1
[node name="Label2" type="RichTextLabel" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer/HBoxContainer3" unique_id=553756431]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
bbcode_enabled = true
text = "PLANT_STATS_TEXT"
fit_content = true
scroll_active = false
vertical_alignment = 1
[node name="TextureRect" type="TextureRect" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer/HBoxContainer3" unique_id=953954556]
layout_mode = 2
size_flags_vertical = 0
texture = ExtResource("7_6k6bq")
stretch_mode = 5
[node name="VBoxContainer3" type="VBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer" unique_id=1226314631]
layout_mode = 2
[node name="HSeparator" type="HSeparator" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer3" unique_id=591048390]
layout_mode = 2
theme_override_constants/separation = 30
theme_override_styles/separator = SubResource("StyleBoxEmpty_ebkn5")
[node name="PlantInfoCard" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer3" unique_id=1085885349 instance=ExtResource("6_vg3tr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(350, 0)
layout_mode = 2
info = SubResource("Resource_puixe")
[node name="VBoxContainer2" type="VBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer" unique_id=906180848]
layout_mode = 2
theme_override_constants/separation = 8
[node name="HSeparator" type="HSeparator" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2" unique_id=760754866]
layout_mode = 2
theme_override_constants/separation = 32
theme_override_styles/separator = SubResource("StyleBoxEmpty_ebkn5")
[node name="HBoxContainer" type="HBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2" unique_id=383033253]
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer" unique_id=475071884]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("17_58nqq")
stretch_mode = 5
[node name="Label2" type="RichTextLabel" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer" unique_id=1479217505]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
bbcode_enabled = true
text = "PLANT_SCORE_TEXT"
fit_content = true
scroll_active = false
horizontal_alignment = 2
vertical_alignment = 1
[node name="HBoxContainer2" type="HBoxContainer" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2" unique_id=2062134463]
visible = false
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer2" unique_id=392813755]
layout_mode = 2
size_flags_vertical = 4
texture = ExtResource("17_58nqq")
stretch_mode = 5
[node name="Label2" type="RichTextLabel" parent="PlantInfoTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer2" unique_id=472790254]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
bbcode_enabled = true
text = "PLANT_MUTATION_TEXT"
fit_content = true
scroll_active = false
horizontal_alignment = 2
vertical_alignment = 1
[node name="PlantInfoOkButton" type="Button" parent="PlantInfoTutorial/MarginContainer" unique_id=1684351093]
layout_mode = 2
size_flags_horizontal = 4
theme = ExtResource("18_6k6bq")
text = "OK"
[node name="PlantInfoTutorialAnimationPlayer" type="AnimationPlayer" parent="PlantInfoTutorial" unique_id=549667783]
unique_name_in_owner = true
libraries/ = SubResource("AnimationLibrary_ebkn5")
[node name="MutationTutorial" type="Control" parent="." unique_id=722588851]
unique_name_in_owner = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Background" type="ColorRect" parent="MutationTutorial" unique_id=250614963]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.037180007, 0.020800002, 0.13, 1)
[node name="MarginContainer" type="VBoxContainer" parent="MutationTutorial" unique_id=1821562698]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 12
alignment = 1
[node name="Title" type="Label" parent="MutationTutorial/MarginContainer" unique_id=1928457691]
layout_mode = 2
text = "MUTATIONS"
label_settings = ExtResource("6_hgus1")
horizontal_alignment = 1
[node name="Subtitle" type="Label" parent="MutationTutorial/MarginContainer" unique_id=1467489572]
layout_mode = 2
text = "SEEDS_HAVE_A_CHANCE_TO_GAIN_MUTATIONS"
horizontal_alignment = 1
[node name="GridContainer" type="GridContainer" parent="MutationTutorial/MarginContainer" unique_id=386984353]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
columns = 3
[node name="VBoxContainer3" type="VBoxContainer" parent="MutationTutorial/MarginContainer/GridContainer" unique_id=2005513108]
layout_mode = 2
[node name="HSeparator" type="HSeparator" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer3" unique_id=593977172]
layout_mode = 2
theme_override_constants/separation = 30
theme_override_styles/separator = SubResource("StyleBoxEmpty_ebkn5")
[node name="MutationCard" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer3" unique_id=1165095240 instance=ExtResource("6_vg3tr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(350, 0)
layout_mode = 2
info = SubResource("Resource_puixe")
[node name="VBoxContainer2" type="VBoxContainer" parent="MutationTutorial/MarginContainer/GridContainer" unique_id=494292951]
layout_mode = 2
theme_override_constants/separation = 8
[node name="HSeparator" type="HSeparator" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer2" unique_id=331005698]
layout_mode = 2
theme_override_constants/separation = 120
theme_override_styles/separator = SubResource("StyleBoxEmpty_ebkn5")
[node name="HBoxContainer2" type="HBoxContainer" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer2" unique_id=781597357]
layout_mode = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer2" unique_id=281613573]
layout_mode = 2
size_flags_vertical = 4
texture = ExtResource("17_58nqq")
stretch_mode = 5
[node name="Label2" type="RichTextLabel" parent="MutationTutorial/MarginContainer/GridContainer/VBoxContainer2/HBoxContainer2" unique_id=1347221574]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
bbcode_enabled = true
text = "PLANT_MUTATION_TEXT"
fit_content = true
scroll_active = false
horizontal_alignment = 2
vertical_alignment = 1
[node name="MutationOkButton" type="Button" parent="MutationTutorial/MarginContainer" unique_id=1316064682]
layout_mode = 2
size_flags_horizontal = 4
theme = ExtResource("18_6k6bq")
text = "OK"
[node name="MutationTutorialAnimationPlayer" type="AnimationPlayer" parent="MutationTutorial" unique_id=127058676]
unique_name_in_owner = true
libraries/ = SubResource("AnimationLibrary_ebkn5")
[connection signal="button_down" from="PlantInfoTutorial/MarginContainer/PlantInfoOkButton" to="." method="_on_plant_info_ok_button_button_down"]
[connection signal="button_down" from="MutationTutorial/MarginContainer/MutationOkButton" to="." method="_on_mutation_ok_button_button_down"]

View File

@@ -1,9 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://b4qe1dwwsk87t"]
[gd_scene format=3 uid="uid://b4qe1dwwsk87t"]
[ext_resource type="Script" uid="uid://dmefdkcsmgr4l" path="res://gui/menu/controls/scripts/controls.gd" id="1_g86te"]
[ext_resource type="PackedScene" uid="uid://brxrl7sipyy6k" path="res://gui/menu/window/window.tscn" id="1_mnd1d"]
[node name="Controls" type="Control"]
[node name="Controls" type="Control" unique_id=1212554468]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -14,7 +14,7 @@ size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_g86te")
[node name="ControlsWindow" parent="." instance=ExtResource("1_mnd1d")]
[node name="ControlsWindow" parent="." unique_id=257725506 instance=ExtResource("1_mnd1d")]
unique_name_in_owner = true
custom_minimum_size = Vector2(900, 500)
layout_mode = 1
@@ -23,14 +23,14 @@ title = "CONTROLS"
[node name="WindowTitle" parent="ControlsWindow/WindowHeader/MarginContainer" index="0"]
text = "CONTROLS"
[node name="MarginContainer" type="MarginContainer" parent="ControlsWindow/WindowContent/MarginContainer/ContentContainer" index="0"]
[node name="MarginContainer" type="MarginContainer" parent="ControlsWindow/WindowContent/MarginContainer/ContentContainer" index="0" unique_id=1413806535]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 0
[node name="ControlsContainer" type="VBoxContainer" parent="ControlsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer"]
[node name="ControlsContainer" type="VBoxContainer" parent="ControlsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer" unique_id=167218094]
unique_name_in_owner = true
layout_mode = 2

View File

@@ -9,9 +9,10 @@ func _ready():
create_input_list()
if not Engine.is_editor_hint():
%ControlsWindow.close_window()
show()
func open_controls():
create_input_list()
show()
%ControlsWindow.open_window()
func close_controls():

View File

@@ -8,14 +8,14 @@ class_name GuiSettings
@export_tool_button("Close", "Callable") var close_action = close_settings
func _ready():
if not Engine.is_editor_hint():
%SettingsWindow.close_window()
func open_settings():
setup_languages()
setup_sound()
setup_video()
if not Engine.is_editor_hint():
%SettingsWindow.close_window()
show()
func open_settings():
%SettingsWindow.open_window()
func close_settings():

View File

@@ -177,10 +177,12 @@ vertical_alignment = 1
[node name="Settings" parent="." unique_id=758381952 instance=ExtResource("4_58dya")]
unique_name_in_owner = true
visible = false
mouse_filter = 2
[node name="Controls" parent="." unique_id=358658336 instance=ExtResource("11_urlqn")]
unique_name_in_owner = true
visible = false
mouse_filter = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1779993260]

View File

@@ -34,7 +34,7 @@ func _input(_event):
pause = not pause
func _on_timeline_ended():
if SceneManager.actual_scene.mouse_captured:
if SceneManager.actual_scene and SceneManager.actual_scene.mouse_captured:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
func _on_resume_pressed():
@@ -47,9 +47,15 @@ func _on_game_gui_pause_asked():
pause = true
func _on_settings_pressed():
open_settings()
func open_settings():
%Settings.open_settings()
func _on_controls_pressed():
open_controls()
func open_controls():
%Controls.open_controls()
func _on_give_up_pressed():

View File

@@ -3,6 +3,7 @@
[ext_resource type="Script" uid="uid://vhumsfntpqcl" path="res://gui/pointer/scripts/pointer.gd" id="1_1pe2k"]
[ext_resource type="Texture2D" uid="uid://bspffyprdywgc" path="res://gui/pointer/assets/cursors/pointer.svg" id="2_q4bvb"]
[ext_resource type="AudioStream" uid="uid://bym03qp4n6vep" path="res://gui/pointer/assets/sounds/click.wav" id="3_kj0cm"]
[ext_resource type="Texture2D" uid="uid://b3vg3tipd4boh" path="res://common/icons/hand-finger.svg" id="3_mw4ws"]
[ext_resource type="AudioStream" uid="uid://bhsew2amu3ydx" path="res://gui/pointer/assets/sounds/action_press_time.wav" id="3_tof6i"]
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="4_b4uwv"]
[ext_resource type="AudioStream" uid="uid://cs4y6sinpth8e" path="res://common/audio_manager/assets/sfx/recharge/recharge_capsule_1.wav" id="4_mw4ws"]
@@ -73,6 +74,7 @@ metadata/_custom_type_script = "uid://dj2pv1hiwjfv0"
process_mode = 3
script = ExtResource("1_1pe2k")
default_cursor = ExtResource("2_q4bvb")
hover_cursor = ExtResource("3_mw4ws")
[node name="InspectorCanvasLayer" type="CanvasLayer" parent="." unique_id=561032710]
layer = 128

View File

@@ -7,12 +7,11 @@ const ZONE_OPACITY = 0.4
const ZONE_ACTIVATED_COLOR = Color("#96B3DB")
const ZONE_DEACTIVATED_COLOR = Color("#FF006E")
const SEED_CURSOR = preload("res://common/icons/shovel.svg")
const CARD_VISUALISATION_TIME = 0.3
const CARD_UP_PADDING = 50
@export var default_cursor : Texture2D
@export var hover_cursor : Texture2D
var current_inspect : Node = null
var inspected : Node = null
@@ -31,6 +30,7 @@ var action_disabled := false
func _ready():
Input.set_custom_mouse_cursor(default_cursor)
Input.set_custom_mouse_cursor(hover_cursor, Input.CURSOR_POINTING_HAND)
%Action.visible = false
func _process(delta):
@@ -43,7 +43,7 @@ func _process(delta):
time_last_inspected += delta
%Inspector.position = get_viewport().get_mouse_position()
if current_selected_item and SceneManager.actual_scene.scene_id == "REGION":
if not action_disabled and current_selected_item and SceneManager.actual_scene.scene_id == "REGION":
%ActionZone.radius = current_selected_item.usage_zone_radius * GameInfo.settings_data.zoom
%ActionZone.color = ZONE_ACTIVATED_COLOR if can_use_item else ZONE_DEACTIVATED_COLOR
else:
@@ -175,7 +175,7 @@ func update_card():
func update_inspector():
if player and (get_tree() and not get_tree().paused):
if player and not action_disabled and (get_tree() and not get_tree().paused):
if can_interact and current_inspect and current_inspect is Interactable:
%Action.visible = true
%ActionText.text = current_inspect.interact_text()

View File

@@ -12,12 +12,12 @@
[ext_resource type="Texture2D" uid="uid://chelw5jxqyyi4" path="res://gui/ressources/textures/option-button-icon.svg" id="7_frr6k"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hv6r3"]
bg_color = Color(0.976471, 0.741176, 0.4, 1)
bg_color = Color(0.98039216, 0.53333336, 0.08627451, 1)
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(0.975367, 0.740445, 0.401877, 1)
border_color = Color(0.98039216, 0.53333336, 0.08627451, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
@@ -161,6 +161,8 @@ corner_radius_bottom_left = 5
[resource]
Button/colors/font_color = Color(1, 1, 1, 1)
Button/colors/font_hover_color = Color(0.5882353, 0.7019608, 0.85882354, 1)
Button/colors/icon_hover_color = Color(0.5882353, 0.7019608, 0.85882354, 1)
Button/font_sizes/font_size = 25
Button/fonts/font = ExtResource("1_g7s0b")
Button/styles/hover = SubResource("StyleBoxFlat_hv6r3")

View File

@@ -161,7 +161,7 @@ corner_radius_bottom_left = 5
[resource]
Button/colors/font_color = Color(1, 1, 1, 1)
Button/colors/font_hover_color = Color(0.60122275, 0.6012229, 0.60122395, 1)
Button/colors/font_hover_color = Color(0.5882353, 0.7019608, 0.85882354, 1)
Button/font_sizes/font_size = 25
Button/fonts/font = ExtResource("1_6ccgi")
Button/styles/hover = SubResource("StyleBoxFlat_hv6r3")