[gd_scene load_steps=7 format=3 uid="uid://dj8heengghud2"] [ext_resource type="Script" path="res://scenes/NewBlocks/part.gd" id="1_hlmu7"] [ext_resource type="Texture2D" uid="uid://cbuxv7iwn0qm7" path="res://assets/Blocks/Block.png" id="1_m2ybm"] [ext_resource type="Texture2D" uid="uid://dni2qahrw2p0k" path="res://assets/Blocks/SpecialBlock.png" id="2_jv3te"] [ext_resource type="Texture2D" uid="uid://jmobplsqdy6o" path="res://assets/Blocks/ExpandBlock.png" id="3_yu63x"] [ext_resource type="Texture2D" uid="uid://13wfksnp806p" path="res://assets/Blocks/SpecialExpandedBlock.png" id="4_yg0r6"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ix7xn"] size = Vector2(48, 48) [node name="Part" type="StaticBody2D"] collision_layer = 24 collision_mask = 24 script = ExtResource("1_hlmu7") [node name="Overlap Test" type="RayCast2D" parent="."] position = Vector2(-16, -16) target_position = Vector2(8, 0) collision_mask = 24 hit_from_inside = true [node name="Overlap Test2" type="RayCast2D" parent="."] position = Vector2(-16, 16) target_position = Vector2(8, 0) collision_mask = 24 hit_from_inside = true [node name="Overlap Test3" type="RayCast2D" parent="."] position = Vector2(16, -16) target_position = Vector2(-8, 0) collision_mask = 24 hit_from_inside = true [node name="Overlap Test4" type="RayCast2D" parent="."] position = Vector2(16, 16) target_position = Vector2(-8, 0) collision_mask = 24 hit_from_inside = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_ix7xn") [node name="Sprites" type="Node2D" parent="."] [node name="Block" type="Sprite2D" parent="Sprites"] visible = false texture = ExtResource("1_m2ybm") [node name="SpecialBlock" type="Sprite2D" parent="Sprites"] visible = false texture = ExtResource("2_jv3te") [node name="ExpandBlock" type="Sprite2D" parent="Sprites"] visible = false texture = ExtResource("3_yu63x") [node name="SpecialExpandedBlock" type="Sprite2D" parent="Sprites"] visible = false texture = ExtResource("4_yg0r6") [node name="Raycasts" type="Node2D" parent="."] [node name="RayTop" type="RayCast2D" parent="Raycasts"] position = Vector2(0, -32) target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayRight" type="RayCast2D" parent="Raycasts"] position = Vector2(32, 0) target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayBottom" type="RayCast2D" parent="Raycasts"] position = Vector2(0, 32) target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayLeft" type="RayCast2D" parent="Raycasts"] position = Vector2(-32, 0) target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true