38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
[gd_scene format=3 uid="uid://cevk7yax5tvej"]
|
|
|
|
[ext_resource type="Script" uid="uid://dm2gyxmgwbmg8" path="res://Attack.cs" id="1_63pi1"]
|
|
[ext_resource type="Texture2D" uid="uid://nwj4n7if8kqd" path="res://Art/circle25r.png" id="2_hqc8w"]
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_63pi1"]
|
|
bounce = 0.25
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_7yfhp"]
|
|
radius = 12.5
|
|
|
|
[sub_resource type="Curve2D" id="Curve2D_63pi1"]
|
|
|
|
[node name="Attack" type="RigidBody2D" unique_id=1225359241]
|
|
input_pickable = true
|
|
physics_material_override = SubResource("PhysicsMaterial_63pi1")
|
|
contact_monitor = true
|
|
max_contacts_reported = 100
|
|
script = ExtResource("1_63pi1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1448070524]
|
|
shape = SubResource("CircleShape2D_7yfhp")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1583277900]
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("2_hqc8w")
|
|
|
|
[node name="Ray" type="RayCast2D" parent="." unique_id=113171676]
|
|
|
|
[node name="PredictedPath" type="Path2D" parent="." unique_id=1505290715]
|
|
modulate = Color(1, 0, 1, 1)
|
|
top_level = true
|
|
curve = SubResource("Curve2D_63pi1")
|
|
|
|
[connection signal="body_entered" from="." to="." method="TakeAction"]
|
|
[connection signal="mouse_entered" from="." to="." method="OnMouseEntered"]
|
|
[connection signal="mouse_exited" from="." to="." method="OnMouseExited"]
|