The_Dark_Side_of_Earth/vines_petals/vine_node.gd
2025-10-03 16:36:28 +02:00

9 lines
275 B
GDScript

class_name VineNode extends Node2D
@export var vine : Vine
@onready var grid : Grid = get_tree().get_root().get_node("main/Earth/Grid")
@export var location : Vector2
@export var offset : Vector2
func _ready() -> void:
position = grid.get_world_position(location, offset)