* Ajout des modes de jeu
* Dev de subterra et estia
* Ajout de tous les dialogues et traduction
* Ajout d'un splashscreen
This commit is contained in:
2026-07-19 12:08:29 +02:00
parent a299ecc320
commit 9fdf8d2888
428 changed files with 7387 additions and 778 deletions
+8 -5
View File
@@ -3,8 +3,7 @@
[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" unique_id=1212554468]
layout_mode = 3
[node name="Controls" type="MarginContainer" unique_id=717235010]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@@ -12,12 +11,17 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 100
theme_override_constants/margin_top = 100
theme_override_constants/margin_right = 100
theme_override_constants/margin_bottom = 100
script = ExtResource("1_g86te")
[node name="ControlsWindow" parent="." unique_id=257725506 instance=ExtResource("1_mnd1d")]
unique_name_in_owner = true
custom_minimum_size = Vector2(900, 600)
layout_mode = 1
custom_minimum_size = Vector2(900, 0)
layout_mode = 2
size_flags_vertical = 1
title = "CONTROLS"
[node name="WindowTitle" parent="ControlsWindow/WindowHeader/MarginContainer" index="0"]
@@ -26,7 +30,6 @@ text = "CONTROLS"
[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
@@ -0,0 +1,266 @@
[gd_scene format=3 uid="uid://4hk0f6n8hyuh"]
[ext_resource type="Script" uid="uid://cthkn1scxnnca" path="res://gui/menu/difficulty_choice/scripts/difficulty_choice.gd" id="1_5hg10"]
[ext_resource type="Texture2D" uid="uid://c2qg7ikkylfv4" path="res://common/icons/seeds.svg" id="1_eeoo0"]
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="1_skytu"]
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="2_7ehmy"]
[ext_resource type="Texture2D" uid="uid://b0wy3dbpxbnt7" path="res://common/icons/seedling.svg" id="4_5hg10"]
[ext_resource type="Texture2D" uid="uid://bn2wkun71ocun" path="res://common/icons/tree.svg" id="5_plfhj"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_skytu"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5hg10"]
bg_color = Color(1, 0.6511667, 0.089999974, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_skytu"]
bg_color = Color(1, 0.6511667, 0.089999974, 0.2)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="LabelSettings" id="LabelSettings_4t8tc"]
font = ExtResource("2_7ehmy")
font_size = 30
[sub_resource type="Animation" id="Animation_skytu"]
resource_name = "Appear"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.03333334, 0.49844408),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.03333334),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="Animation" id="Animation_5hg10"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_plfhj"]
_data = {
&"Appear": SubResource("Animation_skytu"),
&"RESET": SubResource("Animation_5hg10")
}
[node name="DifficultyChoice" type="Control" unique_id=443336436]
visible = false
z_index = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_5hg10")
[node name="ColorRect" type="ColorRect" parent="." unique_id=2133703730]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.06318334, 0.059500005, 0.17, 0.9411765)
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=1702305534]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 20
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer" unique_id=1721241058]
layout_mode = 2
alignment = 1
[node name="Label2" type="Label" parent="MarginContainer/VBoxContainer" unique_id=756845182]
modulate = Color(1, 0.6509804, 0.09019608, 1)
layout_mode = 2
text = "CHOOSE_YOUR_DIFFICULTY"
label_settings = ExtResource("1_skytu")
horizontal_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer" unique_id=1188557407]
custom_minimum_size = Vector2(0, 250)
layout_mode = 2
theme_override_constants/separation = 20
alignment = 1
[node name="CosyModeButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer" unique_id=375973757]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/normal = SubResource("StyleBoxEmpty_skytu")
theme_override_styles/pressed = SubResource("StyleBoxFlat_5hg10")
theme_override_styles/hover = SubResource("StyleBoxFlat_skytu")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CosyModeButton" unique_id=1515573458]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -71.5
offset_bottom = 71.5
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer/CosyModeButton/VBoxContainer" unique_id=1602841768]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
texture = ExtResource("1_eeoo0")
expand_mode = 1
stretch_mode = 5
[node name="TitleLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/CosyModeButton/VBoxContainer" unique_id=2130435806]
layout_mode = 2
text = "COSY_MODE"
label_settings = SubResource("LabelSettings_4t8tc")
horizontal_alignment = 1
[node name="DescLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/CosyModeButton/VBoxContainer" unique_id=1806512879]
layout_mode = 2
text = "COSY_MODE_DESC_TEXT"
horizontal_alignment = 1
autowrap_mode = 3
[node name="AdventureModeButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer" unique_id=126547107]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/normal = SubResource("StyleBoxEmpty_skytu")
theme_override_styles/pressed = SubResource("StyleBoxFlat_5hg10")
theme_override_styles/hover = SubResource("StyleBoxFlat_skytu")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/AdventureModeButton" unique_id=1973750782]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -71.5
offset_bottom = 71.5
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer/AdventureModeButton/VBoxContainer" unique_id=1045038368]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
texture = ExtResource("4_5hg10")
expand_mode = 1
stretch_mode = 5
[node name="TitleLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/AdventureModeButton/VBoxContainer" unique_id=911412306]
layout_mode = 2
text = "ADVENTURE_MODE"
label_settings = SubResource("LabelSettings_4t8tc")
horizontal_alignment = 1
[node name="DescLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/AdventureModeButton/VBoxContainer" unique_id=1973330059]
layout_mode = 2
text = "ADVENTURE_MODE_DESC_TEXT"
horizontal_alignment = 1
autowrap_mode = 3
[node name="ChallengeModeButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer" unique_id=2146436246]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/normal = SubResource("StyleBoxEmpty_skytu")
theme_override_styles/pressed = SubResource("StyleBoxFlat_5hg10")
theme_override_styles/hover = SubResource("StyleBoxFlat_skytu")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/ChallengeModeButton" unique_id=400968416]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -71.5
offset_bottom = 71.5
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer/ChallengeModeButton/VBoxContainer" unique_id=1474416427]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
texture = ExtResource("5_plfhj")
expand_mode = 1
stretch_mode = 5
[node name="TitleLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/ChallengeModeButton/VBoxContainer" unique_id=1983629939]
layout_mode = 2
text = "CHALLENGE_MODE"
label_settings = SubResource("LabelSettings_4t8tc")
horizontal_alignment = 1
[node name="DescLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/ChallengeModeButton/VBoxContainer" unique_id=172158488]
layout_mode = 2
text = "CHALLENGE_MODE_DESC_TEXT"
horizontal_alignment = 1
autowrap_mode = 3
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer" unique_id=563420684]
modulate = Color(1, 0.6509804, 0.09019608, 1)
layout_mode = 2
text = "DIFFICULTY_CAN_BE_CHANGED_AT_ANY_TIME_IN_THE_SETTINGS"
horizontal_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=607186407]
unique_name_in_owner = true
libraries/ = SubResource("AnimationLibrary_plfhj")
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CosyModeButton" to="." method="_on_cosy_mode_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/AdventureModeButton" to="." method="_on_adventure_mode_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/ChallengeModeButton" to="." method="_on_challenge_mode_button_pressed"]
@@ -0,0 +1,28 @@
extends Control
class_name DifficultyChoice
signal mode_chosen
func appear():
%AnimationPlayer.play("Appear")
await %AnimationPlayer.animation_finished
func disappear():
%AnimationPlayer.play_backwards("Appear")
await %AnimationPlayer.animation_finished
func _on_cosy_mode_button_pressed():
GameInfo.settings_data.story_mode_difficulty = 0
GameInfo.save_settings()
mode_chosen.emit()
func _on_adventure_mode_button_pressed():
GameInfo.settings_data.story_mode_difficulty = 1
GameInfo.save_settings()
mode_chosen.emit()
func _on_challenge_mode_button_pressed():
GameInfo.settings_data.story_mode_difficulty = 2
GameInfo.save_settings()
mode_chosen.emit()
@@ -0,0 +1 @@
uid://cthkn1scxnnca
+8
View File
@@ -12,6 +12,7 @@ func _ready():
setup_sound()
setup_video()
setup_controls()
setup_difficulty()
setup_twitch()
update_twitch_pseudo()
show()
@@ -30,6 +31,7 @@ func open_settings():
setup_sound()
setup_video()
setup_controls()
setup_difficulty()
setup_twitch()
update_twitch_pseudo()
show()
@@ -60,6 +62,9 @@ func setup_controls():
%FovSlider.value = settings.fov
%SensibilitySlider.value = settings.mouse_sensivity
func setup_difficulty():
%StoryModeDifficultyOptionButton.selected = settings.story_mode_difficulty
func setup_twitch():
%TwitchActivationCheckBox.button_pressed = settings.activate_twitch_integration
%TwitchChannelLineEdit.text = settings.twitch_channel
@@ -112,3 +117,6 @@ func _on_twitch_activation_check_box_toggled(toggled_on: bool):
func _on_twitch_channel_line_edit_editing_toggled(toggled_on: bool):
if not toggled_on:
settings.twitch_channel = %TwitchChannelLineEdit.text
func _on_story_mode_difficulty_option_button_item_selected(index: int):
settings.story_mode_difficulty = index
+27
View File
@@ -6,6 +6,10 @@
[ext_resource type="PackedScene" uid="uid://cvjqp3oewr3rv" path="res://gui/menu/window/content_title.tscn" id="3_rbiwc"]
[ext_resource type="PackedScene" uid="uid://d3agt2njfgddb" path="res://gui/menu/window/content_label.tscn" id="4_rbiwc"]
[ext_resource type="AudioStream" uid="uid://8juy5ev3rdfh" path="res://common/audio_manager/assets/sfx/plant_points/plant_point_1.wav" id="6_8f00b"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="6_bun6f"]
[ext_resource type="Texture2D" uid="uid://c2qg7ikkylfv4" path="res://common/icons/seeds.svg" id="6_v2wwn"]
[ext_resource type="Texture2D" uid="uid://b0wy3dbpxbnt7" path="res://common/icons/seedling.svg" id="7_bun6f"]
[ext_resource type="Texture2D" uid="uid://bn2wkun71ocun" path="res://common/icons/tree.svg" id="8_18i73"]
[node name="Settings" type="MarginContainer" unique_id=1374154672]
process_mode = 3
@@ -173,6 +177,28 @@ title = "GAME"
layout_mode = 2
columns = 2
[node name="StoryModeDifficultyText" parent="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings" unique_id=1951982692 instance=ExtResource("4_rbiwc")]
layout_mode = 2
size_flags_horizontal = 3
text = "STORY_MODE_DIFFICULTY"
[node name="StoryModeDifficultyOptionButton" type="OptionButton" parent="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings" unique_id=361207221]
unique_name_in_owner = true
layout_mode = 2
theme = ExtResource("6_bun6f")
theme_override_constants/icon_max_width = 32
selected = 0
item_count = 3
popup/item_0/text = "COSY_MODE"
popup/item_0/icon = ExtResource("6_v2wwn")
popup/item_0/id = 0
popup/item_1/text = "ADVENTURE_MODE"
popup/item_1/icon = ExtResource("7_bun6f")
popup/item_1/id = 1
popup/item_2/text = "CHALLENGE_MODE"
popup/item_2/icon = ExtResource("8_18i73")
popup/item_2/id = 2
[node name="SensibilitySliderText" parent="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings" unique_id=1624022562 instance=ExtResource("4_rbiwc")]
layout_mode = 2
size_flags_horizontal = 3
@@ -261,6 +287,7 @@ bus = &"Sfx"
[connection signal="toggled" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/VideoSettings/FullScreenCheckBox" to="." method="_on_full_screen_check_box_toggled"]
[connection signal="value_changed" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/VideoSettings/UiSizeSlider" to="." method="_on_ui_size_slider_value_changed"]
[connection signal="value_changed" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/VideoSettings/FovSlider" to="." method="_on_fov_slider_value_changed"]
[connection signal="item_selected" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings/StoryModeDifficultyOptionButton" to="." method="_on_story_mode_difficulty_option_button_item_selected"]
[connection signal="value_changed" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings/SensibilitySlider" to="." method="_on_sensibility_slider_value_changed"]
[connection signal="toggled" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GameSettings/AutoPickupCheckBox" to="." method="_on_auto_pickup_check_box_toggled"]
[connection signal="toggled" from="SettingsWindow/WindowContent/MarginContainer/ContentContainer/MarginContainer/SettingsContent/GridContainer/TwitchActivationCheckBox" to="." method="_on_twitch_activation_check_box_toggled"]