30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://btdnshtrnejt"]
|
|
|
|
[ext_resource type="Script" uid="uid://c8041v2usigk4" path="res://scripts/tetromino.gd" id="1_hprdj"]
|
|
[ext_resource type="Resource" uid="uid://curn7voye0ewx" path="res://resources/data/tetrominos/i_piece.tres" id="2_f3wyc"]
|
|
[ext_resource type="ArrayMesh" uid="uid://cp721yqfdga1n" path="res://assets/models/MSH_T_Corta.res" id="3_f3wyc"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_f3wyc"]
|
|
|
|
[node name="Tetromino" type="Node3D"]
|
|
script = ExtResource("1_hprdj")
|
|
resource = ExtResource("2_f3wyc")
|
|
|
|
[node name="Visuals" type="Node3D" parent="."]
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Visuals"]
|
|
layers = 2
|
|
mesh = ExtResource("3_f3wyc")
|
|
skeleton = NodePath("../..")
|
|
|
|
[node name="SelectionArea" type="Area3D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="SelectionArea"]
|
|
shape = SubResource("BoxShape3D_f3wyc")
|
|
|
|
[connection signal="input_event" from="SelectionArea" to="." method="_on_selection_area_input_event"]
|
|
[connection signal="mouse_entered" from="SelectionArea" to="." method="_on_selection_area_mouse_entered"]
|
|
[connection signal="mouse_exited" from="SelectionArea" to="." method="_on_selection_area_mouse_exited"]
|