Ajout d'un mode infini

This commit is contained in:
2026-06-26 17:53:28 +02:00
parent e133519dc0
commit 53c86e9cc7
38 changed files with 595 additions and 148 deletions

View File

@@ -95,7 +95,7 @@ func score_update(with_animation = true):
func state_update(region_data : RegionData):
if region_data.state == RegionData.State.SUCCEEDED:
objective_text = "COLLECT_YOUR_SEEDS_AND_TAKE_OFF"
if GameInfo.game_data.current_run.story_step is TutorialStoryStep:
if GameInfo.game_data.current_run.get_st is TutorialStoryStep:
objective_text = "PASS_THE_MYSTERIOUS_DOOR"
elif region_data.state == RegionData.State.FAILED:
objective_text = "NO_RECHARGE_LEFT"

View File

@@ -8,6 +8,7 @@
[ext_resource type="Texture2D" uid="uid://cixd5j8yqpavg" path="res://common/icons/settings.svg" id="6_yj6f1"]
[ext_resource type="Texture2D" uid="uid://bkwhrq4sp5dcp" path="res://common/icons/device-gamepad.svg" id="7_7c7ks"]
[ext_resource type="Texture2D" uid="uid://dex283rx00fjb" path="res://common/icons/logout.svg" id="7_yj6f1"]
[ext_resource type="Texture2D" uid="uid://bcjkds8n5qu6x" path="res://common/icons/rotate-rectangle.svg" id="8_5hfp2"]
[ext_resource type="Texture2D" uid="uid://b43thuq8piv18" path="res://common/icons/skull.svg" id="8_mnkqy"]
[ext_resource type="PackedScene" uid="uid://b4qe1dwwsk87t" path="res://gui/menu/controls/controls.tscn" id="11_urlqn"]
@@ -155,6 +156,11 @@ layout_mode = 2
text = "GIVE_UP"
icon = ExtResource("8_mnkqy")
[node name="TitleScreen" type="Button" parent="Container/MarginContainer/Pause/HBoxContainer" unique_id=1549423194]
layout_mode = 2
text = "RETURN_TO_TITLE_SCREEN"
icon = ExtResource("8_5hfp2")
[node name="Quit" type="Button" parent="Container/MarginContainer/Pause/HBoxContainer" unique_id=1740895928]
layout_mode = 2
text = "QUIT"
@@ -185,4 +191,5 @@ libraries/ = SubResource("AnimationLibrary_yj6f1")
[connection signal="pressed" from="Container/MarginContainer/Pause/HBoxContainer/Settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="Container/MarginContainer/Pause/HBoxContainer/Controls" to="." method="_on_controls_pressed"]
[connection signal="pressed" from="Container/MarginContainer/Pause/HBoxContainer/GiveUp" to="." method="_on_give_up_pressed"]
[connection signal="pressed" from="Container/MarginContainer/Pause/HBoxContainer/TitleScreen" to="." method="_on_title_screen_pressed"]
[connection signal="pressed" from="Container/MarginContainer/Pause/HBoxContainer/Quit" to="." method="_on_quit_pressed"]

View File

@@ -62,3 +62,7 @@ func _on_give_up_pressed():
if GameInfo.game_data:
GameInfo.game_data.give_up()
pause = false
func _on_title_screen_pressed():
SceneManager.change_to_scene(TitleScene.new())
pause = false

View File

@@ -129,7 +129,7 @@ func process_player_actions(delta: float):
and current_selected_item.is_action_need_press_time()
and not press_action_done
and not can_interact
and not inspected is InventoryGuiItemMouseDetector
and not (inspected and inspected is InventoryGuiItemMouseDetector)
):
%ActionProgressBar.value = press_time / current_selected_item.get_action_press_time() * 100
if not %ActionProgressPlayer.playing: