-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.tscn
More file actions
57 lines (47 loc) · 2.12 KB
/
Copy pathexample.tscn
File metadata and controls
57 lines (47 loc) · 2.12 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[gd_scene format=3 uid="uid://dyp1csw107mep"]
[ext_resource type="Script" uid="uid://dxw051xmo3yq" path="res://example.gd" id="1_8lvy3"]
[ext_resource type="PackedScene" uid="uid://ql605p851hou" path="res://hollow_collision_polygon2d.tscn" id="2_wcwec"]
[ext_resource type="Script" uid="uid://cy1au64dtgyj5" path="res://hollow_collision_polygon_2d.gd" id="3_ei00m"]
[node name="Example" type="Node" unique_id=140908855]
script = ExtResource("1_8lvy3")
metadata/_edit_lock_ = true
[node name="Camera2D" type="Camera2D" parent="." unique_id=407867771]
metadata/_edit_lock_ = true
[node name="Area2D" type="Area2D" parent="." unique_id=1587558940]
metadata/_edit_lock_ = true
[node name="HollowCollisionPolygon2D" parent="Area2D" unique_id=2029291585 instance=ExtResource("2_wcwec")]
polygon = PackedVector2Array(500, -250, 500, 250, -500, 250, -500, -250)
script = ExtResource("3_ei00m")
metadata/_edit_lock_ = true
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1180962709]
[node name="PolygonNumberLabel" type="Label" parent="CanvasLayer" unique_id=1317738601]
anchors_preset = -1
anchor_right = 0.5
anchor_bottom = 0.07
offset_bottom = 0.3199997
text = "Polygon number: "
horizontal_alignment = 1
metadata/_edit_lock_ = true
[node name="MouseInsideLabel" type="Label" parent="CanvasLayer" unique_id=356430270]
anchors_preset = -1
anchor_left = 0.5
anchor_right = 1.0
anchor_bottom = 0.07
offset_bottom = 0.3199997
text = "Mouse: "
horizontal_alignment = 1
metadata/_edit_lock_ = true
[node name="VisibleCollisionShapesLabel" type="Label" parent="CanvasLayer" unique_id=691571467]
anchors_preset = -1
anchor_top = 0.96500003
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -0.32000732
grow_horizontal = 2
grow_vertical = 0
text = "If you don't see anything, turn on \"Visible Collision Shapes\" in the debug settings"
horizontal_alignment = 1
metadata/_edit_lock_ = true
[connection signal="input_event" from="Area2D" to="." method="_on_example_input_event"]
[connection signal="mouse_entered" from="Area2D" to="." method="_on_area_2d_mouse_entered"]
[connection signal="mouse_exited" from="Area2D" to="." method="_on_area_2d_mouse_exited"]