37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bul5wdylupx54"]
|
|
|
|
[ext_resource type="Script" uid="uid://dkqr1sxxunr2w" path="res://scripts/DetectionArea.gd" id="1_txslw"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_g682f"]
|
|
radius = 500.0
|
|
|
|
[sub_resource type="Gradient" id="Gradient_augeu"]
|
|
offsets = PackedFloat32Array(0.745547, 1)
|
|
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_f5emh"]
|
|
gradient = SubResource("Gradient_augeu")
|
|
width = 1000
|
|
height = 1000
|
|
fill = 1
|
|
fill_from = Vector2(0.495726, 0.517094)
|
|
fill_to = Vector2(1, 0.508547)
|
|
|
|
[node name="DetectionArea" type="Area2D"]
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
script = ExtResource("1_txslw")
|
|
radius = 200.0
|
|
requires_line_of_sight = null
|
|
active_state = null
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_g682f")
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="."]
|
|
energy = 0.3
|
|
shadow_enabled = true
|
|
texture = SubResource("GradientTexture2D_f5emh")
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|