working with new sprites

This commit is contained in:
Altaezio
2026-02-18 18:25:43 +01:00
parent fb8a2da4ff
commit 35004684f4
100 changed files with 1244 additions and 951 deletions

View File

@@ -4,23 +4,12 @@ class_name PlantPart
enum PartType {BASE_PART, BRANCH_PART, LEAF_PART, FLOWER_PART}
@export var texture: Texture
@export var root: Vector2
@export var attaches: Array[Vector2]
@export var bottom_attaches: Array[Vector2]
@export var type: PartType
@export var root: PlantAttach
@export var attaches: Array[PlantAttach] # array of vec2
@export var is_back: bool
@export var base_attachable: bool
@export var bottom_attachable: bool
@export var branch_attachable: bool
func init(textute_arg: Texture, root_arg: Vector2, attaches_arg: Array[Vector2], bottom_attaches_arg: Array[Vector2], type_arg: PartType, is_back_arg: bool, base_attachable_arg: bool, bottom_attachable_arg: bool, branch_attachable_arg: bool) -> void:
func init(textute_arg: Texture, type_arg: PartType, root_arg: PlantAttach, attaches_arg: Array[PlantAttach]) -> void:
texture = textute_arg
type = type_arg
root = root_arg
attaches = attaches_arg
bottom_attaches = bottom_attaches_arg
type = type_arg
is_back = is_back_arg
base_attachable = base_attachable_arg
bottom_attachable = bottom_attachable_arg
branch_attachable = branch_attachable_arg