création du squelette des region modifier, amélioration du tutoriel et mise en place de la run complète avec cinématique d'outro

This commit is contained in:
2026-02-21 20:44:41 +01:00
parent eb48a095de
commit e767e776f2
80 changed files with 415 additions and 201 deletions

View File

@@ -35,7 +35,7 @@ func _ready():
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
set_room_part_number()
chosen_incubator_id = randi_range(0, len(%Incubators.get_children()))
chosen_incubator_id = randi_range(0, len(%Incubators.get_children()) - 1)
var new_player_incubator := %Incubators.get_children()[chosen_incubator_id] as Incubator
new_player_incubator.used = true
%Player3D.position = new_player_incubator.global_position + Vector3.UP
@@ -52,6 +52,7 @@ func _ready():
func story():
AudioManager.play_sfx("Respawn")
if not INTRO_DIALOG in GameInfo.game_data.dialogs_done:
await get_tree().create_timer(TIME_WITHOUT_PHONE).timeout
%Phone.play_audio()

View File

@@ -184,6 +184,9 @@ volumetric_fog_sky_affect = 0.0
adjustment_enabled = true
adjustment_saturation = 1.3
[sub_resource type="BoxShape3D" id="BoxShape3D_c8vcx"]
size = Vector3(0.001, 7.6933594, 7.697876)
[node name="BoreaBase" type="Node3D" unique_id=442220603]
script = ExtResource("1_fevne")
@@ -910,6 +913,13 @@ autoplay = &"blink"
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1121246225]
environment = SubResource("Environment_fevne")
[node name="AmbianceChangeDetector" type="Area3D" parent="." unique_id=1401161313]
transform = Transform3D(0.25881904, 0, 0.96592593, 0, 1, 0, -0.96592593, 0, 0.25881904, 2.7012572, -5.600957, -42.815655)
[node name="CollisionShape3D" type="CollisionShape3D" parent="AmbianceChangeDetector" unique_id=1969356725]
transform = Transform3D(0.9999994, 0, 0, 0, 1, 0, 0, 0, 0.9999994, -9.359516, 0.82910156, 2.9935746)
shape = SubResource("BoxShape3D_c8vcx")
[node name="Player3D" parent="." unique_id=549819967 instance=ExtResource("3_c8vcx")]
unique_name_in_owner = true
transform = Transform3D(0.25881904, 0, 0.96592593, 0, 1, 0, -0.96592593, 0, 0.25881904, 29.244379, 41.40791, 8.823577)
@@ -924,3 +934,5 @@ transform = Transform3D(-0.93482566, 0, 0.35510686, 0, 1, 0, -0.35510686, 0, -0.
[node name="Credits" parent="." unique_id=180964898 instance=ExtResource("6_c8vcx")]
unique_name_in_owner = true
visible = false
[connection signal="body_entered" from="AmbianceChangeDetector" to="." method="_on_ambiance_change_detector_body_entered"]

View File

@@ -12,4 +12,11 @@ func _ready():
await Dialogic.timeline_ended
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
%Credits.show()
AudioManager.play_music("Title")
AudioManager.stop_ambiance()
func _on_ambiance_change_detector_body_entered(body: Node3D):
if body is Player3D:
AudioManager.stop_ambiance()
AudioManager.play_music("Title")

View File

@@ -109,7 +109,7 @@ func update_dashboard():
if choosen_run_point:
dashboard.destination_title_label = tr("DESTINATION")
dashboard.destination_longitude = float(choosen_run_point.level) / RunData.RUN_POINT_MAX_LEVEL
dashboard.destination_label = choosen_run_point.region_parameter.name
dashboard.destination_label = choosen_run_point.region_parameter.region_name
dashboard.status_text = ""
else:
dashboard.status_text = tr("CHOOSE_DESTINATION")

View File

@@ -95,13 +95,13 @@ func set_left_destination(v := left_destination):
%LeftScreenStats.visible = left_destination != null
if left_destination:
%LeftScreenActionIcon.texture = LAND_ICON
%LeftScreenActionLabel.text = left_destination.region_parameter.name
%LeftScreenActionLabel.text = left_destination.region_parameter.get_region_name()
%LeftScreenStat1Icon.texture = GROWTH_ICON
%LeftScreenStat1Label.text = str(left_destination.region_parameter.objective)
%LeftScreenStat1Label.text = str(left_destination.region_parameter.get_objective())
%LeftScreenStat2Icon.texture = CHARGE_ICON
%LeftScreenStat2Label.text = str(left_destination.region_parameter.charges)
%LeftScreenStat2Label.text = str(left_destination.region_parameter.get_charge())
func set_right_destination(v := right_destination):
right_destination = v
@@ -111,10 +111,10 @@ func set_right_destination(v := right_destination):
%RightScreenStats.visible = right_destination != null
if right_destination:
%RightScreenActionIcon.texture = LAND_ICON
%RightScreenActionLabel.text = right_destination.region_parameter.name
%RightScreenActionLabel.text = right_destination.region_parameter.get_region_name()
%RightScreenStat1Icon.texture = GROWTH_ICON
%RightScreenStat1Label.text = str(right_destination.region_parameter.objective)
%RightScreenStat1Label.text = str(right_destination.region_parameter.get_objective())
%RightScreenStat2Icon.texture = CHARGE_ICON
%RightScreenStat2Label.text = str(right_destination.region_parameter.charges)
%RightScreenStat2Label.text = str(right_destination.region_parameter.get_charge())

View File

@@ -17,8 +17,6 @@ func _input(_e):
func _ready():
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
GameInfo.game_data.tutorial_done = true
%Phone.play_audio()
await %Phone.clicked
%Phone.stop_audio()