branches and one texture

This commit is contained in:
Altaezio
2026-02-13 11:18:34 +01:00
parent ab5089ad6c
commit e6d34a50a5
76 changed files with 359 additions and 1386 deletions

View File

@@ -16,9 +16,9 @@ func update_plant_sprite(plant_data : PlantData, with_animation = false):
await %AnimationPlayer.animation_finished
%Sprite.flip_h = true if plant_data.random_seed%2 == 0 else false
%Sprite.texture = plant_data.get_plant_texture()
%Sprite.texture = %TextureBuilder.build_plant_texture(plant_data)
%PlantedSeed.texture = plant_data.get_seed_texture()
%PlantedSeed.texture = %TextureBuilder.build_seed_texture(plant_data.random_seed)
%PlantedSeed.visible = plant_data.get_state() == PlantData.State.PLANTED
# %PlantedSeed.region_rect = Rect2(