finished reowrking grid maps, polished astar pathfinding, started work on aiming functions --todo: change launch speed to constant, change aim function to take into account the angle it would need to launch at to hit mouse position like in peggle, add raycasting

This commit is contained in:
2026-06-03 02:44:13 -04:00
parent 7b5cd9d5f6
commit c97b0e5cc2
24 changed files with 1108 additions and 1104 deletions
+8 -2
View File
@@ -4,7 +4,9 @@
[ext_resource type="Texture2D" uid="uid://nwj4n7if8kqd" path="res://Art/circle25r.png" id="2_hqc8w"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7yfhp"]
radius = 14.0
radius = 8.0
[sub_resource type="Curve2D" id="Curve2D_63pi1"]
[node name="Attack" type="RigidBody2D" unique_id=1225359241]
input_pickable = true
@@ -16,9 +18,13 @@ script = ExtResource("1_63pi1")
shape = SubResource("CircleShape2D_7yfhp")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1583277900]
scale = Vector2(0.56, 0.56)
scale = Vector2(0.32, 0.32)
texture = ExtResource("2_hqc8w")
[node name="PredictedPath" type="Path2D" parent="." unique_id=1505290715]
modulate = Color(1, 0, 1, 1)
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"]