1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[gd_scene load_steps=4 format=2]

[ext_resource path="res://dots/dot.gd" type="Script" id=1]
[ext_resource path="res://dot.png" type="Texture" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 35, 35 )

[node name="dot_template" type="Area2D"]
collision_layer = 2
collision_mask = 0
script = ExtResource( 1 )

[node name="dotsprite" type="Sprite" parent="."]
position = Vector2( 5, -65 )
texture = ExtResource( 2 )
centered = false

[node name="dotcollider" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( 35, -35 )
shape = SubResource( 1 )

[node name="dotray" type="RayCast2D" parent="."]
position = Vector2( 0, -70 )
enabled = true
cast_to = Vector2( 0, 1000 )
collision_mask = 2
collide_with_areas = true
collide_with_bodies = false

[connection signal="input_event" from="." to="." method="_on_dot_input"]