necra-prototypes/map_point.tscn
Antonio Dell'Annunziata 1adf5b5ed7
All checks were successful
/ test (push) Successful in 2s
Create prototype for map (unfinished)
2025-03-11 06:42:57 +01:00

48 lines
1.5 KiB
Text

[gd_scene load_steps=7 format=3 uid="uid://b5tdh43sbe5nj"]
[ext_resource type="Script" uid="uid://bhct6bhjtnml0" path="res://map_point.gd" id="1_jfx02"]
[sub_resource type="Gradient" id="Gradient_tn1m0"]
offsets = PackedFloat32Array(0.40636, 0.45583)
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_pw3im"]
gradient = SubResource("Gradient_tn1m0")
width = 40
height = 40
fill = 1
fill_from = Vector2(0.5, 0.5)
[sub_resource type="Gradient" id="Gradient_ywy6p"]
offsets = PackedFloat32Array(0.40636, 0.45583)
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_gpntq"]
gradient = SubResource("Gradient_ywy6p")
width = 32
height = 32
fill = 1
fill_from = Vector2(0.5, 0.5)
[sub_resource type="CircleShape2D" id="CircleShape2D_01fxh"]
radius = 13.0384
[node name="MapPoint" type="Node2D"]
script = ExtResource("1_jfx02")
[node name="HoverDot" type="Sprite2D" parent="."]
visible = false
texture = SubResource("GradientTexture2D_pw3im")
[node name="Dot" type="Sprite2D" parent="."]
texture = SubResource("GradientTexture2D_gpntq")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 1024
collision_mask = 1024
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_01fxh")
[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"]