From 145eaf399d586bd855d5dacadece4747f5e7109a Mon Sep 17 00:00:00 2001 From: Adrien Ufferte Date: Thu, 11 Sep 2025 12:28:34 +0200 Subject: [PATCH] Clean naming to be easier to understand --- sources/gardens/gardens.gd | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sources/gardens/gardens.gd b/sources/gardens/gardens.gd index 82545800..4246184a 100644 --- a/sources/gardens/gardens.gd +++ b/sources/gardens/gardens.gd @@ -8,7 +8,7 @@ const KALULU := preload("res://sources/minigames/base/kalulu.gd") const GARDEN_SCENE: PackedScene = preload("res://resources/gardens/garden.tscn") const LOOK_AND_LEARN_SCENE: PackedScene = preload("res://sources/look_and_learn/look_and_learn.tscn") -const FLOWER_FVX: PackedScene = preload("res://sources/gardens/flower_particle.tscn") +const FLOWER_VFX: PackedScene = preload("res://sources/gardens/flower_particle.tscn") const GARDEN_SIZE: int = 2400 @@ -284,14 +284,14 @@ func _ready() -> void: play_animation = true if play_animation: - var fvfx: FlowerVFX = FLOWER_FVX.instantiate() - current_garden.flower_controls[flower_ind].add_child(fvfx) - fvfx.anchor_bottom = 0.5 - fvfx.anchor_top = 0.5 - fvfx.anchor_left = 0.5 - fvfx.anchor_right = 0.5 + var flower_vfx: FlowerVFX = FLOWER_VFX.instantiate() + current_garden.flower_controls[flower_ind].add_child(flower_vfx) + flower_vfx.anchor_bottom = 0.5 + flower_vfx.anchor_top = 0.5 + flower_vfx.anchor_left = 0.5 + flower_vfx.anchor_right = 0.5 - fvfx.play() + flower_vfx.play() await get_tree().create_timer(0.5).timeout current_garden.update_flowers()