Cleaned up the Code; reworked the Block Physics

This commit is contained in:
Exobyt 2024-08-27 22:35:24 +02:00
parent ed9f671256
commit 9f6750b08a
48 changed files with 1237 additions and 1116 deletions

View file

@ -0,0 +1,62 @@
[gd_scene load_steps=2 format=3 uid="uid://c203pse4172mc"]
[ext_resource type="PackedScene" uid="uid://cbjkurbgojqac" path="res://scenes/NewBlocks/block.tscn" id="1_wdx08"]
[node name="2x2" instance=ExtResource("1_wdx08")]
modulate = Color(1, 0.627451, 0, 1)
offset = true
[node name="CollisionPolygon2D" parent="." index="0"]
polygon = PackedVector2Array(63, 63, 63, -63, -63, -63, -63, 63)
[node name="Marker2D" type="Marker2D" parent="PartPoints" index="0"]
position = Vector2(-32, -32)
[node name="Marker2D2" type="Marker2D" parent="PartPoints" index="1"]
position = Vector2(32, -32)
[node name="Marker2D3" type="Marker2D" parent="PartPoints" index="2"]
position = Vector2(-32, 32)
[node name="Marker2D4" type="Marker2D" parent="PartPoints" index="3"]
position = Vector2(32, 32)
[node name="RayCast2D" type="RayCast2D" parent="." index="4"]
position = Vector2(-48, -56)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D2" type="RayCast2D" parent="." index="5"]
position = Vector2(-16, -56)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D3" type="RayCast2D" parent="." index="6"]
position = Vector2(16, -56)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D4" type="RayCast2D" parent="." index="7"]
position = Vector2(48, -56)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D5" type="RayCast2D" parent="." index="8"]
position = Vector2(-48, 8)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D6" type="RayCast2D" parent="." index="9"]
position = Vector2(-16, 8)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D7" type="RayCast2D" parent="." index="10"]
position = Vector2(16, 8)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D8" type="RayCast2D" parent="." index="11"]
position = Vector2(48, 8)
collision_mask = 3
hit_from_inside = true