adding in some example pegs and their actions. organizing folders, still working on pathing for some reason it won't move sometimes, and causes the looping to break

This commit is contained in:
2026-06-26 02:36:01 -04:00
parent fc32baa071
commit 350d2bc4d1
33 changed files with 366 additions and 165 deletions
+37
View File
@@ -0,0 +1,37 @@
[gd_scene format=3 uid="uid://cevk7yax5tvej"]
[ext_resource type="Script" uid="uid://dm2gyxmgwbmg8" path="res://Ball.cs" id="1_41u45"]
[ext_resource type="Texture2D" uid="uid://nwj4n7if8kqd" path="res://Art/circle25r.png" id="2_ktgx5"]
[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="Ball" type="RigidBody2D" unique_id=1225359241]
input_pickable = true
physics_material_override = SubResource("PhysicsMaterial_63pi1")
contact_monitor = true
max_contacts_reported = 100
script = ExtResource("1_41u45")
[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_ktgx5")
[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"]