@tool
extends Sprite2D

# Helper script to create a simple circle sprite at runtime

func _ready():
	if texture == null:
		var image = Image.create(64, 64, false, Image.FORMAT_RGBA8)
		var center = Vector2(32, 32)
		var radius = 30.0
		
		for x in range(64):
			for y in range(64):
				var dist = Vector2(x, y).distance_to(center)
				if dist <= radius:
					image.set_pixel(x, y, Color.WHITE)
				else:
					image.set_pixel(x, y, Color.TRANSPARENT)
		
		texture = ImageTexture.create_from_image(image)

