@tool extends Node2D class_name TileRenderer @export var target: Positional @export var base_color: Color = Color.SPRING_GREEN @export var top_color: Color = Color.WEB_GREEN var drawbox: Rect2 var drawbox_top: Rect2 # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta): queue_redraw() func _draw(): draw_circle(Vector2.ZERO, 10, Color.ANTIQUE_WHITE) func _update_drawbox(): if not is_node_ready(): return # drawbox = _center_rect(_inset_rect(worldbox, 5)) # drawbox_top = _center_rect(_inset_rect(worldbox, 7)) # drawbox_top.size.y -= 8