ajout d'un indicateur de la base lors de l'exploration et changements divers

* suppression des deux dernières étapes du tutoriel
* fix des particules de score
* ajout du loop dans l'import de la dernière musique
This commit is contained in:
2025-11-09 16:53:57 +01:00
parent b9a0a33ac7
commit fb5a692cf4
8 changed files with 47 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
extends InGameIndicator
class_name InGameBaseIndicator
@export var player : Player
# Called when the node enters the scene tree for the first time.
func _ready():
setup(tr("GARDEN"))
print(GameInfo.game_data.current_planet_data.garden_size/2)
follow_game_position(GameInfo.game_data.current_planet_data.garden_size/2)
func _process(_delta):
visible = player and (
player.global_position.x < 0
or player.global_position.x > GameInfo.game_data.current_planet_data.garden_size.x
or player.global_position.y < 0
or player.global_position.y > GameInfo.game_data.current_planet_data.garden_size.y
)
update()

View File

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

View File

@@ -33,7 +33,9 @@ func follow_entity(entity : Node2D):
func _process(_d):
show()
update()
func update():
var camera = get_viewport().get_camera_2d()
var screen_size = get_viewport().get_visible_rect().size

View File

@@ -13,8 +13,8 @@ var indicators : Array[InGameIndicator]
TakeSeedStep.new(),
PlantSeedStep.new(),
RechargeStep.new(),
WaitMaturePlant.new(),
HarvestMaturePlant.new(),
# WaitMaturePlant.new(),
# HarvestMaturePlant.new(),
]
var actual_step : Step = null : set = pass_to_step