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

@@ -33,7 +33,7 @@ func can_use(_player : Player, zone : Player.ActionZone) -> bool:
return false
func use(player : Player, zone : Player.ActionZone) -> bool:
AudioManager.play_sfx("Pickaxe")
AudioManager.play_sfx("Dig")
for area in zone.get_affected_areas():
if area and area is Plant:
harvest(area, player)

View File

@@ -15,6 +15,7 @@ var signals : Array[DetectorSignalIndividual] = []
func _init(region : Region, pos : Vector2):
for e in region.entity_container.get_children():
if e.visible:
if e is TruckRecharge:
signals.append(
DetectorSignalIndividual.new(
@@ -22,7 +23,7 @@ func _init(region : Region, pos : Vector2):
ENERGY_ICON
)
)
if e is Door and e.available and e.visible:
if e is Door and e.available:
signals.append(
DetectorSignalIndividual.new(
(pos - e.global_position).normalized().angle(),