Texpand/scenes/NewBlocks/part.tscn
2024-09-20 22:46:27 +02:00

69 lines
2.2 KiB
Text

[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="Area2D" groups=["Part"]]
collision_layer = 8
collision_mask = 16
script = ExtResource("1_hlmu7")
[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
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 16
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_ix7xn")