diff options
Diffstat (limited to 'Reusable Scenes')
-rw-r--r-- | Reusable Scenes/number_node.tscn | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/Reusable Scenes/number_node.tscn b/Reusable Scenes/number_node.tscn index 9564505..a10429b 100644 --- a/Reusable Scenes/number_node.tscn +++ b/Reusable Scenes/number_node.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://ccvoi0qmvlxmj"] +[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="Texture2D" uid="uid://cckv0u0uvmp6p" path="res://icon.svg" id="2_d46p4"] @@ -11,29 +11,39 @@ size = Vector2(66, 66) radius = 29.41 [sub_resource type="CircleShape2D" id="CircleShape2D_y33cg"] -radius = 130.8 +radius = 100.38 -[node name="NumberNode" type="Node2D" node_paths=PackedStringArray("label", "label_modifier", "sprite", "sprite_modifier")] +[sub_resource type="CircleShape2D" id="CircleShape2D_vk134"] +radius = 120.0 + +[node name="NumberNode" type="Node2D" node_paths=PackedStringArray("label", "sprite", "sprite_modifier")] script = ExtResource("1_7p1bu") label = NodePath("Label") -label_modifier = NodePath("Label2") sprite = NodePath("Sprite2D") sprite_modifier = NodePath("Sprite2D2") -[node name="Area2D" type="Area2D" parent="."] +[node name="NumberArea2D" type="Area2D" parent="."] script = ExtResource("3_2viuw") -[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +[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="Sprite2D" type="Sprite2D" parent="."] @@ -43,8 +53,8 @@ texture = ExtResource("2_d46p4") [node name="Sprite2D2" type="Sprite2D" parent="."] modulate = Color(1, 0, 0, 1) -position = Vector2(19, -17) -scale = Vector2(0.26, 0.11) +position = Vector2(16, -17) +scale = Vector2(0.109375, 0.11) texture = ExtResource("2_d46p4") [node name="Label" type="Label" parent="."] @@ -63,19 +73,5 @@ text = "X" horizontal_alignment = 1 vertical_alignment = 1 -[node name="Label2" type="Label" parent="."] -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 3.0 -offset_top = -24.0 -offset_right = 35.0 -offset_bottom = -10.0 -grow_vertical = 0 -theme_override_font_sizes/font_size = 10 -text = "X" -horizontal_alignment = 1 -vertical_alignment = 1 - -[connection signal="mouse_entered" from="Area2D" to="Area2D" method="_on_mouse_entered"] -[connection signal="mouse_exited" from="Area2D" to="Area2D" method="_on_mouse_exited"] +[connection signal="mouse_entered" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_entered"] +[connection signal="mouse_exited" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_exited"] |