Ajout de l'impact des plantes proche pour le mutations et réparation du travel screen dans le mode infini

This commit is contained in:
2026-06-26 18:29:40 +02:00
parent 53c86e9cc7
commit 39630ce2ca
7 changed files with 31 additions and 16 deletions

View File

@@ -35,14 +35,14 @@ func _ready():
%EnergyInfo3d.energy = GameInfo.game_data.player_data.energy
%EnergyInfo3d.max_energy = GameInfo.game_data.player_data.max_energy
func update_travel_screen(with_animation = true):
func update_travel_screen(with_animation = true, recreate_map = false):
if is_node_ready():
var current_position = run_data.level + (0.5 if in_space else 0.)
%TravelScreenContent.story_step = run_data.story_step
%TravelScreenContent.current_position = current_position
%TravelScreenContent.update(with_animation)
%TravelScreenContent.update(with_animation, recreate_map)
%TopologyContent.texture.noise.seed = run_data.run_seed

View File

@@ -33,6 +33,7 @@ var ship_icon : Sprite2D
func update(with_animation := true, recreate_map = false):
if is_node_ready() and story_step:
print(current_position)
if recreate_map or not ship_icon:
if story_step and get_step_number() < story_step.get_region_sequence_length():

View File

@@ -10,9 +10,7 @@ metadata/_custom_type_script = "uid://bdonub7t01xmi"
[node name="TravelScreenContent" type="Node2D" unique_id=1386845472]
position = Vector2(500, 256)
script = ExtResource("1_u6tks")
current_position = 3.0
story_step = SubResource("Resource_iergx")
start = 2
[node name="Icons" type="Node2D" parent="." unique_id=1787603855]
unique_name_in_owner = true

View File

@@ -146,7 +146,7 @@ func update_dashboard(with_animation := true):
dashboard.run_data = current_run
dashboard.in_space = GameInfo.game_data.ship_in_space
dashboard.update_travel_screen(with_animation)
dashboard.update_travel_screen(with_animation, not with_animation)
var can_take_off : bool = (
not current_run.is_finished()