texture_builder + growing sprites
This commit is contained in:
@@ -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 = %TextureBuilder.build_plant_texture(plant_data)
|
||||
%Sprite.texture = PlantTextureBuilder.build_plant_texture(plant_data)
|
||||
|
||||
%PlantedSeed.texture = %TextureBuilder.build_seed_texture(plant_data.random_seed)
|
||||
%PlantedSeed.texture = PlantTextureBuilder.build_seed_texture(plant_data.random_seed)
|
||||
%PlantedSeed.visible = plant_data.get_state() == PlantData.State.PLANTED
|
||||
|
||||
# %PlantedSeed.region_rect = Rect2(
|
||||
|
||||
Reference in New Issue
Block a user