]> Untitled Git - catris.git/blob - scene/board.tscn
ae4396ae901a9d1da9f286dab35c8cafae89975f
[catris.git] / scene / board.tscn
1 [gd_scene load_steps=8 format=3 uid="uid://4saff6435gux"]
2
3 [ext_resource type="Script" uid="uid://bex8wrsgbx63r" path="res://script/board.gd" id="1_b3264"]
4 [ext_resource type="PackedScene" uid="uid://baol0a7qqcn3x" path="res://piece/I-piece.tscn" id="3_cpyxj"]
5 [ext_resource type="Texture2D" uid="uid://b6om08wjtci31" path="res://asset/grid.png" id="3_rl6p6"]
6 [ext_resource type="PackedScene" uid="uid://dy0ckr6gerb0u" path="res://piece/L-piece.tscn" id="4_vojld"]
7 [ext_resource type="PackedScene" uid="uid://d0810r1cqtcgi" path="res://piece/O-piece.tscn" id="5_tbg0t"]
8 [ext_resource type="PackedScene" uid="uid://cippodirvtoil" path="res://piece/S-piece.tscn" id="6_ye24f"]
9 [ext_resource type="PackedScene" uid="uid://36g8xep7m4ly" path="res://piece/T-piece.tscn" id="7_6upfg"]
10
11 [node name="Board" type="Control"]
12 custom_minimum_size = Vector2(200, 400)
13 layout_mode = 3
14 anchors_preset = 5
15 anchor_left = 0.5
16 anchor_right = 0.5
17 grow_horizontal = 2
18 script = ExtResource("1_b3264")
19 piece_catalogue = Array[PackedScene]([ExtResource("3_cpyxj"), ExtResource("4_vojld"), ExtResource("5_tbg0t"), ExtResource("6_ye24f"), ExtResource("7_6upfg")])
20
21 [node name="grid" type="TextureRect" parent="."]
22 unique_name_in_owner = true
23 layout_mode = 1
24 anchors_preset = 15
25 anchor_right = 1.0
26 anchor_bottom = 1.0
27 grow_horizontal = 2
28 grow_vertical = 2
29 texture = ExtResource("3_rl6p6")
30 stretch_mode = 1
31
32 [node name="turnTimer" type="Timer" parent="."]
33 unique_name_in_owner = true
34
35 [connection signal="end_round" from="." to="." method="_on_end_round"]
36 [connection signal="timeout" from="turnTimer" to="." method="_on_turn_timer_timeout"]