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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
[gd_scene load_steps=8 format=3 uid="uid://ccvoi0qmvlxmj"]
[ext_resource type="Script" path="res://Scripts/NumberNode.gd" id="1_7p1bu"]
[ext_resource type="Script" path="res://Scripts/NumberArea.gd" id="3_2viuw"]
[ext_resource type="Texture2D" uid="uid://4kqj3gk42j8w" path="res://Assets/Visuals/circle.png" id="3_bqdxd"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ld6aj"]
size = Vector2(66, 66)
[sub_resource type="CircleShape2D" id="CircleShape2D_mh4p4"]
radius = 29.41
[sub_resource type="CircleShape2D" id="CircleShape2D_y33cg"]
radius = 100.38
[sub_resource type="CircleShape2D" id="CircleShape2D_vk134"]
radius = 120.0
[node name="NumberNode" type="Node2D" node_paths=PackedStringArray("label", "sprite", "shadow_sprite", "sprite_modifier")]
script = ExtResource("1_7p1bu")
label = NodePath("Label")
sprite = NodePath("Sprite2D")
shadow_sprite = NodePath("SpriteShadow")
sprite_modifier = NodePath("Sprite2D2")
[node name="NumberArea2D" type="Area2D" parent="."]
script = ExtResource("3_2viuw")
[node name="CollisionShape2D" type="CollisionShape2D" parent="NumberArea2D"]
shape = SubResource("RectangleShape2D_ld6aj")
[node name="ShapeCast2D" type="ShapeCast2D" parent="."]
shape = SubResource("CircleShape2D_mh4p4")
target_position = Vector2(0, 0)
collision_mask = 5
collide_with_areas = true
[node name="ShapeCast2D2" type="ShapeCast2D" parent="."]
shape = SubResource("CircleShape2D_y33cg")
target_position = Vector2(0, 0)
collision_mask = 4
collide_with_areas = true
[node name="ShapeCast2D3" type="ShapeCast2D" parent="."]
modulate = Color(1, 0, 1, 1)
shape = SubResource("CircleShape2D_vk134")
target_position = Vector2(0, 0)
collide_with_areas = true
[node name="SpriteShadow" type="Sprite2D" parent="."]
modulate = Color(0, 0, 0, 0.564706)
z_index = -2
z_as_relative = false
position = Vector2(-5, 5)
scale = Vector2(0.08, 0.08)
texture = ExtResource("3_bqdxd")
[node name="Sprite2D" type="Sprite2D" parent="."]
modulate = Color(0, 0, 0, 1)
scale = Vector2(0.08, 0.08)
texture = ExtResource("3_bqdxd")
[node name="Sprite2D2" type="Sprite2D" parent="."]
modulate = Color(1, 0, 0, 1)
position = Vector2(16, -17)
scale = Vector2(0.02, 0.02)
texture = ExtResource("3_bqdxd")
[node name="Label" type="Label" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -19.0
offset_right = 20.0
offset_bottom = 19.0
grow_horizontal = 2
grow_vertical = 2
text = "X"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="mouse_entered" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_exited"]
|