Tuesday, 19 August 2025 01:37:27
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user