added some bucket features and two modes

This commit is contained in:
EdGuloien committed 2026-05-02 22:48:39 -04:00
1 parent 4ec4dbb5ad
commit 536b212426
3 files changed
+106 -9

No files matched your search

+53 -2
View File
@@ -3,7 +3,11 @@
[ext_resource type="Script" uid="uid://g0yk17km82bv" path="res://scripts/model.gd" id="1_bctr2"]
[ext_resource type="Script" uid="uid://b51w6528jl7ns" path="res://scripts/droplet.gd" id="2_rka1o"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_qxwdg"]
bounce = 0.25
[sub_resource type="CircleShape2D" id="CircleShape2D_jsxgm"]
radius = 2.236068
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jsxgm"]
size = Vector2(142, 20)
@@ -12,7 +16,8 @@ size = Vector2(142, 20)
script = ExtResource("1_bctr2")
[node name="droplet" type="RigidBody2D" parent="." unique_id=1124928337]
position = Vector2(100, 100)
position = Vector2(27, 96)
physics_material_override = SubResource("PhysicsMaterial_qxwdg")
script = ExtResource("2_rka1o")
metadata/_edit_group_ = true
@@ -54,7 +59,7 @@ shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[node name="bucket" type="Node2D" parent="." unique_id=431072106]
position = Vector2(-98, 102)
position = Vector2(276, -261)
metadata/_edit_group_ = true
[node name="platform4" type="StaticBody2D" parent="bucket" unique_id=1216137882]
@@ -86,3 +91,49 @@ metadata/_edit_group_ = true
position = Vector2(-0.8749161, 0.48425293)
shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[node name="big_bucket" type="Node2D" parent="." unique_id=1340688088]
position = Vector2(-115, 91)
metadata/_edit_group_ = true
[node name="platform4" type="StaticBody2D" parent="big_bucket" unique_id=1712494835]
position = Vector2(450.99997, 440)
rotation = 1.5717075
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="big_bucket/platform4" unique_id=1527990798]
position = Vector2(-0.8749161, 0.48425293)
shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[node name="platform5" type="StaticBody2D" parent="big_bucket" unique_id=1995856626]
position = Vector2(512, 498.99997)
rotation = 0.0012022424
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="big_bucket/platform5" unique_id=1305563426]
position = Vector2(-0.8749161, 0.48425293)
shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[node name="platform7" type="StaticBody2D" parent="big_bucket" unique_id=146253526]
position = Vector2(650, 498.99997)
rotation = 0.00064454623
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="big_bucket/platform7" unique_id=1359956789]
position = Vector2(-0.8749161, 0.48425293)
shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[node name="platform6" type="StaticBody2D" parent="big_bucket" unique_id=749418854]
position = Vector2(710.00006, 437.00003)
rotation = -1.5774848
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="big_bucket/platform6" unique_id=1171236966]
position = Vector2(-0.8749161, 0.48425293)
shape = SubResource("RectangleShape2D_jsxgm")
debug_color = Color(0.5959702, 0.54461277, 0.08352526, 0.41960785)
[connection signal="body_entered" from="droplet" to="droplet" method="_on_body_entered"]