50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://yajhyi0j8b6a"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/Block/block_part.gd" id="1_nb58p"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tjkbt"]
|
|
size = Vector2(64, 64)
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_puslh"]
|
|
|
|
[node name="BlockPart" type="Area2D"]
|
|
collision_layer = 2
|
|
collision_mask = 4
|
|
script = ExtResource("1_nb58p")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_tjkbt")
|
|
|
|
[node name="Raycasts" type="Node2D" parent="."]
|
|
|
|
[node name="RayCastTOP" type="RayCast2D" parent="Raycasts"]
|
|
position = Vector2(0, -48)
|
|
target_position = Vector2(0, -16)
|
|
collision_mask = 11
|
|
hit_from_inside = true
|
|
collide_with_areas = true
|
|
|
|
[node name="RayCastRIGHT" type="RayCast2D" parent="Raycasts"]
|
|
position = Vector2(48, 0)
|
|
target_position = Vector2(16, 0)
|
|
collision_mask = 11
|
|
hit_from_inside = true
|
|
collide_with_areas = true
|
|
|
|
[node name="RayCastBOTTOM" type="RayCast2D" parent="Raycasts"]
|
|
position = Vector2(0, 48)
|
|
target_position = Vector2(0, 16)
|
|
collision_mask = 11
|
|
hit_from_inside = true
|
|
collide_with_areas = true
|
|
|
|
[node name="RayCastLEFT" type="RayCast2D" parent="Raycasts"]
|
|
position = Vector2(-48, 0)
|
|
target_position = Vector2(-16, 0)
|
|
collision_mask = 11
|
|
hit_from_inside = true
|
|
collide_with_areas = true
|
|
|
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
|
scale = Vector2(62, 62)
|
|
mesh = SubResource("QuadMesh_puslh")
|