This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
odyssey-old/Actors/Systems/Electricity/ElectricProbe.tscn

37 lines
1,016 B
Text
Raw Normal View History

2020-07-08 12:30:46 +00:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Actors/Systems/Electricity/ElectricProbe.gd" type="Script" id=1]
[sub_resource type="CircleShape2D" id=1]
radius = 12.0
[sub_resource type="SegmentShape2D" id=2]
a = Vector2( 16, -16 )
b = Vector2( 16, 48 )
[sub_resource type="SegmentShape2D" id=3]
a = Vector2( -16, 16 )
b = Vector2( 48, 16 )
[node name="ElProbe" type="Area2D"]
collision_layer = 4
collision_mask = 4
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 16, 16 )
shape = SubResource( 1 )
[node name="NeighbourCheck" type="Area2D" parent="."]
input_pickable = false
monitorable = false
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="NeighbourCheck"]
shape = SubResource( 2 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="NeighbourCheck"]
shape = SubResource( 3 )
[connection signal="area_entered" from="NeighbourCheck" to="." method="_got_neighbour"]