[gd_scene load_steps=5 format=3 uid="uid://6ww1g2enfdx3"]

[ext_resource type="Texture2D" uid="uid://cun14l52f477p" path="res://textures/atlas/Bushes_All_01_SPRT.png" id="1_ssqve"]

[sub_resource type="AtlasTexture" id="AtlasTexture_2wdar"]
atlas = ExtResource("1_ssqve")
region = Rect2(384, 64, 288, 224)

[sub_resource type="GDScript" id="GDScript_uqtu8"]
script/source = "@tool
extends Sprite2D

@export_group(\"Sticker Detection Shape\")
@export var StickerShape :Shape2D:
	set(new_shape):
		StickerShape =  new_shape
		$Area2D/StickerShape2D.shape = StickerShape
		$Area2D/StickerShape2D.queue_redraw()
@export var Position :Vector2:
	set(new_position):
		Position = new_position
		$Area2D/StickerShape2D.position = Position
		$Area2D/StickerShape2D.queue_redraw()
@export var Rotation :Vector2:
	set(new_rotation):
		Rotation = new_rotation
		$Area2D/StickerShape2D.rotation = Rotation
		$Area2D/StickerShape2D.queue_redraw()
		
@export_group(\"Collision Shape\")
@export var CollisionShape :Shape2D:
	set(new_CollisionShape):
		CollisionShape =  new_CollisionShape
		$StaticBody2D/CollisionShape2D.shape = CollisionShape
		$StaticBody2D/CollisionShape2D.queue_redraw()
@export var CollisionPosition :Vector2:
	set(new_CollisionPosition):
		CollisionPosition = new_CollisionPosition
		$StaticBody2D/CollisionShape2D.position = CollisionPosition
		$StaticBody2D/CollisionShape2D.queue_redraw()
@export var CollisionRotation :float:
	set(new_ColissionRotation):
		CollisionRotation = new_ColissionRotation
		$StaticBody2D/CollisionShape2D.rotation = CollisionRotation
		$StaticBody2D/CollisionShape2D.queue_redraw()
		
"

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ep5ck"]
size = Vector2(104.391, 20.3774)

[node name="SolidSticker1" type="Sprite2D"]
scale = Vector2(3.80334, 3.95089)
texture = SubResource("AtlasTexture_2wdar")
centered = false
offset = Vector2(-161.055, -179.785)
script = SubResource("GDScript_uqtu8")
metadata/tags = ["sticker"]

[node name="Area2D" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 0
monitoring = false

[node name="StickerShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(-4.46976, -71.6294)
rotation = 1.5708

[node name="StaticBody2D" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(2.10341, -10.8836)
shape = SubResource("RectangleShape2D_ep5ck")
debug_color = Color(0.996033, 0, 0.194446, 0.42)

[connection signal="property_list_changed" from="." to="." method="_on_property_list_changed"]
