Tuesday, 19 August 2025 01:37:27

This commit is contained in:
2025-08-19 01:37:30 -04:00
parent a47a6331ee
commit dfbad40739
30 changed files with 333 additions and 80 deletions

View File

@@ -3,11 +3,11 @@
[ext_resource type="Script" uid="uid://qmgo5eukvn6y" path="res://Gameplay/Tchotchke.cs" id="1_c08fi"]
[ext_resource type="Texture2D" uid="uid://c1tv50tj5cprl" path="res://art/coffee.png" id="2_gl5mj"]
[sub_resource type="CircleShape2D" id="CircleShape2D_d82wc"]
radius = 31.1448
[sub_resource type="CircleShape2D" id="CircleShape2D_gl5mj"]
radius = 65.0
radius = 32.0
[sub_resource type="CircleShape2D" id="CircleShape2D_d82wc"]
radius = 32.0
[node name="Tchotchke" type="StaticBody2D"]
input_pickable = true
@@ -18,17 +18,19 @@ scale = Vector2(0.1, 0.1)
texture = ExtResource("2_gl5mj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_d82wc")
shape = SubResource("CircleShape2D_gl5mj")
[node name="Area2D" type="Area2D" parent="."]
[node name="Gravity" type="Area2D" parent="."]
gravity_space_override = 1
gravity_point = true
gravity_point_unit_distance = 32.0
gravity_point_center = Vector2(0, 0)
gravity_direction = Vector2(0, 0)
gravity = 50.0
gravity = 5.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_gl5mj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Gravity"]
shape = SubResource("CircleShape2D_d82wc")
[connection signal="mouse_entered" from="." to="." method="OnMouseEntered"]
[connection signal="mouse_exited" from="." to="." method="OnMouseExited"]
[connection signal="body_entered" from="Gravity" to="." method="OnBodyEntered"]