-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.tscn
110 lines (94 loc) · 3.06 KB
/
Game.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Objects/GameGrid/GameGrid.tscn" type="PackedScene" id=1]
[ext_resource path="res://Game.gd" type="Script" id=2]
[ext_resource path="res://Objects/DiceThrower/DiceThrower.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/bg.jpg" type="Texture" id=4]
[ext_resource path="res://Objects/ScoreManager/ScoreManager.gd" type="Script" id=5]
[ext_resource path="res://Objects/WinDialog/WinAmountDialog.tscn" type="PackedScene" id=6]
[node name="Game" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
[node name="Bg" type="Sprite" parent="."]
position = Vector2( 523.585, 311.5 )
scale = Vector2( 1.65691, 1.65691 )
texture = ExtResource( 4 )
[node name="GameGrid" parent="." instance=ExtResource( 1 )]
anchor_right = 0.082
anchor_bottom = 0.076
margin_left = 454.0
margin_top = 60.0
margin_right = 370.032
margin_bottom = 14.4
[node name="RedFlag" type="ColorRect" parent="GameGrid"]
margin_left = -0.950001
margin_top = -2.5
margin_right = 9.05
margin_bottom = -1.5
color = Color( 0.678431, 0.054902, 0.054902, 1 )
[node name="GameGrid2" parent="." instance=ExtResource( 1 )]
anchor_right = 0.082
anchor_bottom = 0.076
margin_left = 454.0
margin_top = 331.0
margin_right = 370.032
margin_bottom = 285.4
[node name="RedFlag" type="ColorRect" parent="GameGrid2"]
margin_left = -0.950001
margin_top = 11.8
margin_right = 9.05
margin_bottom = 13.8
color = Color( 0.0862745, 0.317647, 0.678431, 1 )
[node name="Selector" type="ColorRect" parent="."]
margin_left = 1051.0
margin_top = 24.0
margin_right = 1101.0
margin_bottom = 234.0
color = Color( 1, 1, 1, 0.145098 )
[node name="DiceThrower" parent="." instance=ExtResource( 3 )]
[node name="ScoreManager" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 5 )
[node name="ColorRect" type="ColorRect" parent="ScoreManager"]
margin_left = 60.0
margin_top = 117.0
margin_right = 100.0
margin_bottom = 157.0
color = Color( 1, 0, 0, 1 )
[node name="ColorRect2" type="ColorRect" parent="ScoreManager"]
margin_left = 908.0
margin_top = 394.0
margin_right = 948.0
margin_bottom = 434.0
color = Color( 0.243137, 0.321569, 0.835294, 1 )
[node name="DowPlayerScore" type="Label" parent="ScoreManager"]
margin_left = 887.0
margin_top = 375.0
margin_right = 927.0
margin_bottom = 417.0
rect_scale = Vector2( 2, 2 )
text = "1"
align = 1
valign = 1
[node name="UpPlayerScore" type="Label" parent="ScoreManager"]
margin_left = 39.0
margin_top = 97.0
margin_right = 79.0
margin_bottom = 139.0
rect_scale = Vector2( 2, 2 )
text = "1"
align = 1
valign = 1
[node name="WinAmountDialog" parent="." instance=ExtResource( 6 )]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -82.0
margin_top = -47.0
margin_right = 125.0
margin_bottom = -7.0
[connection signal="update_score" from="." to="ScoreManager" method="_on_Game_update_score"]
[connection signal="grid_is_full" from="GameGrid" to="." method="_on_GameGrid_grid_is_full"]
[connection signal="grid_is_full" from="GameGrid2" to="." method="_on_GameGrid_grid_is_full"]