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

60
scenes/NewBlocks/Z/Z.tscn Normal file
View file

@ -0,0 +1,60 @@
[gd_scene load_steps=2 format=3 uid="uid://xpcbf85u5d65"]
[ext_resource type="PackedScene" uid="uid://cbjkurbgojqac" path="res://scenes/NewBlocks/block.tscn" id="1_yvspj"]
[node name="Z" instance=ExtResource("1_yvspj")]
modulate = Color(1, 0, 1, 1)
[node name="CollisionPolygon2D" parent="." index="0"]
polygon = PackedVector2Array(-95, 31, 31, 31, 31, -33, 95, -33, 95, -95, -31, -95, -31, -31, -95, -31)
[node name="Marker2D" type="Marker2D" parent="PartPoints" index="0"]
position = Vector2(-64, 0)
[node name="Marker2D2" type="Marker2D" parent="PartPoints" index="1"]
[node name="Marker2D3" type="Marker2D" parent="PartPoints" index="2"]
position = Vector2(0, -64)
[node name="Marker2D4" type="Marker2D" parent="PartPoints" index="3"]
position = Vector2(64, -64)
[node name="RayCast2D" type="RayCast2D" parent="." index="6"]
position = Vector2(-80, -24)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D2" type="RayCast2D" parent="." index="7"]
position = Vector2(-48, -24)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D3" type="RayCast2D" parent="." index="8"]
position = Vector2(-16, -24)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D4" type="RayCast2D" parent="." index="9"]
position = Vector2(16, -24)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D5" type="RayCast2D" parent="." index="10"]
position = Vector2(-16, -88)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D6" type="RayCast2D" parent="." index="11"]
position = Vector2(16, -88)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D7" type="RayCast2D" parent="." index="12"]
position = Vector2(48, -88)
collision_mask = 3
hit_from_inside = true
[node name="RayCast2D8" type="RayCast2D" parent="." index="13"]
position = Vector2(80, -88)
collision_mask = 3
hit_from_inside = true