-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gameplay.tscn
84 lines (74 loc) · 2.09 KB
/
Gameplay.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Board.tscn" type="PackedScene" id=1]
[ext_resource path="res://Gameplay.gd" type="Script" id=2]
[ext_resource path="res://icon.png" type="Texture" id=3]
[ext_resource path="res://Art/CUBE.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://Art/GameInterface.png" type="Texture" id=5]
[ext_resource path="res://Art/tetris.ogg" type="AudioStream" id=6]
[sub_resource type="DynamicFont" id=1]
size = 25
font_data = ExtResource( 4 )
[node name="Gameplay" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Board" parent="HBoxContainer" instance=ExtResource( 1 )]
anchor_bottom = 0.0
margin_right = 496.0
margin_bottom = 1000.0
size_flags_horizontal = 3
[node name="TextureRect" type="TextureRect" parent="HBoxContainer"]
margin_left = 500.0
margin_right = 700.0
margin_bottom = 1000.0
rect_min_size = Vector2( 200, 0 )
texture = ExtResource( 5 )
[node name="NextPieceBG" type="ColorRect" parent="HBoxContainer/TextureRect"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -80.0
margin_top = 150.0
margin_right = 80.0
margin_bottom = 310.0
color = Color( 0.0862745, 0.0862745, 0.0862745, 0.686275 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NextPiece" type="TextureRect" parent="HBoxContainer/TextureRect"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -80.0
margin_top = 150.0
margin_right = 80.0
margin_bottom = 310.0
texture = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Score" type="Label" parent="HBoxContainer/TextureRect"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -87.0
margin_top = -30.0
margin_right = 88.0
margin_bottom = 20.0
custom_fonts/font = SubResource( 1 )
text = "25"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
autoplay = true