Skip to content

Commit 8694700

Browse files
committed
MAJOR resize project display
2000x1390
1 parent 4bb9403 commit 8694700

File tree

10 files changed

+86
-68
lines changed

10 files changed

+86
-68
lines changed

debug_label_theme.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
[resource]
66
default_font = ExtResource("1_jo8de")
7-
default_font_size = 10
7+
default_font_size = 18

enums.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const APP_VER:String = "0.1.0"
44
const APP_BLD:String = "2040510"
55
const TWEEN_TIME:float = 0.25
66
const EXPLODE_DELAY:int = 1
7+
const SRPITE_POS:Vector2 = Vector2(64,64)
78
var current_debug_level = DEBUG_LEVEL.INFO # Global variable to set the current debug level
89

910
# =========================================================

game.tscn

Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -27,160 +27,166 @@ bg_color = Color(0, 0, 0, 0.411765)
2727
script = ExtResource("1_ewnxx")
2828

2929
[node name="Background" type="TextureRect" parent="."]
30-
offset_right = 1920.0
31-
offset_bottom = 1080.0
32-
scale = Vector2(0.6, 0.6)
30+
offset_right = 2000.0
31+
offset_bottom = 1390.0
3332
texture = ExtResource("1_h8otn")
33+
expand_mode = 2
3434

35-
[node name="BkgdTextRect" type="Panel" parent="."]
36-
offset_right = 1154.0
37-
offset_bottom = 652.0
35+
[node name="BkgdDimmer" type="Panel" parent="."]
36+
visible = false
37+
anchors_preset = 15
38+
anchor_right = 1.0
39+
anchor_bottom = 1.0
40+
offset_right = 2000.0
41+
offset_bottom = 1390.0
42+
grow_horizontal = 2
43+
grow_vertical = 2
3844
theme_override_styles/panel = SubResource("StyleBoxFlat_103kv")
3945

4046
[node name="VboxBkgd" type="Panel" parent="."]
4147
offset_left = 50.0
4248
offset_top = 75.0
43-
offset_right = 235.0
44-
offset_bottom = 587.0
49+
offset_right = 450.0
50+
offset_bottom = 1175.0
4551
theme_override_styles/panel = SubResource("StyleBoxFlat_k3sk6")
4652

4753
[node name="GameStats" type="VBoxContainer" parent="."]
4854
offset_left = 80.0
4955
offset_top = 85.0
50-
offset_right = 230.0
51-
offset_bottom = 585.0
56+
offset_right = 405.0
57+
offset_bottom = 1185.0
5258
theme_override_constants/separation = 20
5359

5460
[node name="HBoxContainer1" type="HBoxContainer" parent="GameStats"]
5561
layout_mode = 2
5662
theme_override_constants/separation = 25
5763

5864
[node name="Control" type="Control" parent="GameStats/HBoxContainer1"]
59-
custom_minimum_size = Vector2(65, 65)
65+
custom_minimum_size = Vector2(128, 128)
6066
layout_mode = 2
6167

6268
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer1/Control"]
63-
scale = Vector2(0.25, 0.25)
69+
scale = Vector2(0.5, 0.5)
6470
texture = ExtResource("3_sh4xh")
6571
centered = false
6672

6773
[node name="Label" type="Label" parent="GameStats/HBoxContainer1"]
6874
layout_mode = 2
6975
size_flags_horizontal = 3
7076
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
71-
theme_override_font_sizes/font_size = 32
77+
theme_override_font_sizes/font_size = 96
7278
text = "0"
7379

7480
[node name="HBoxContainer2" type="HBoxContainer" parent="GameStats"]
7581
layout_mode = 2
7682
theme_override_constants/separation = 25
7783

7884
[node name="Control" type="Control" parent="GameStats/HBoxContainer2"]
79-
custom_minimum_size = Vector2(65, 65)
85+
custom_minimum_size = Vector2(128, 128)
8086
layout_mode = 2
8187

8288
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer2/Control"]
83-
scale = Vector2(0.25, 0.25)
89+
scale = Vector2(0.5, 0.5)
8490
texture = ExtResource("3_qywvx")
8591
centered = false
8692

8793
[node name="Label" type="Label" parent="GameStats/HBoxContainer2"]
8894
layout_mode = 2
8995
size_flags_horizontal = 3
9096
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
91-
theme_override_font_sizes/font_size = 32
97+
theme_override_font_sizes/font_size = 96
9298
text = "0"
9399

94100
[node name="HBoxContainer3" type="HBoxContainer" parent="GameStats"]
95101
layout_mode = 2
96102
theme_override_constants/separation = 25
97103

98104
[node name="Control" type="Control" parent="GameStats/HBoxContainer3"]
99-
custom_minimum_size = Vector2(65, 65)
105+
custom_minimum_size = Vector2(128, 128)
100106
layout_mode = 2
101107

102108
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer3/Control"]
103-
scale = Vector2(0.25, 0.25)
109+
scale = Vector2(0.5, 0.5)
104110
texture = ExtResource("4_2reex")
105111
centered = false
106112

107113
[node name="Label" type="Label" parent="GameStats/HBoxContainer3"]
108114
layout_mode = 2
109115
size_flags_horizontal = 3
110116
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
111-
theme_override_font_sizes/font_size = 32
117+
theme_override_font_sizes/font_size = 96
112118
text = "0"
113119

114120
[node name="HBoxContainer4" type="HBoxContainer" parent="GameStats"]
115121
layout_mode = 2
116122
theme_override_constants/separation = 25
117123

118124
[node name="Control" type="Control" parent="GameStats/HBoxContainer4"]
119-
custom_minimum_size = Vector2(65, 65)
125+
custom_minimum_size = Vector2(128, 128)
120126
layout_mode = 2
121127

122128
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer4/Control"]
123-
scale = Vector2(0.25, 0.25)
129+
scale = Vector2(0.5, 0.5)
124130
texture = ExtResource("5_g428h")
125131
centered = false
126132

127133
[node name="Label" type="Label" parent="GameStats/HBoxContainer4"]
128134
layout_mode = 2
129135
size_flags_horizontal = 3
130136
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
131-
theme_override_font_sizes/font_size = 32
137+
theme_override_font_sizes/font_size = 96
132138
text = "0"
133139

134140
[node name="HBoxContainer5" type="HBoxContainer" parent="GameStats"]
135141
layout_mode = 2
136142
theme_override_constants/separation = 25
137143

138144
[node name="Control" type="Control" parent="GameStats/HBoxContainer5"]
139-
custom_minimum_size = Vector2(65, 65)
145+
custom_minimum_size = Vector2(128, 128)
140146
layout_mode = 2
141147

142148
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer5/Control"]
143-
scale = Vector2(0.25, 0.25)
149+
scale = Vector2(0.5, 0.5)
144150
texture = ExtResource("7_o4d3d")
145151
centered = false
146152

147153
[node name="Label" type="Label" parent="GameStats/HBoxContainer5"]
148154
layout_mode = 2
149155
size_flags_horizontal = 3
150156
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
151-
theme_override_font_sizes/font_size = 32
157+
theme_override_font_sizes/font_size = 96
152158
text = "0"
153159

154160
[node name="HBoxContainer6" type="HBoxContainer" parent="GameStats"]
155161
layout_mode = 2
156162
theme_override_constants/separation = 25
157163

158164
[node name="Control" type="Control" parent="GameStats/HBoxContainer6"]
159-
custom_minimum_size = Vector2(65, 65)
165+
custom_minimum_size = Vector2(128, 128)
160166
layout_mode = 2
161167

162168
[node name="Sprite2D" type="Sprite2D" parent="GameStats/HBoxContainer6/Control"]
163-
scale = Vector2(0.25, 0.25)
169+
scale = Vector2(0.5, 0.5)
164170
texture = ExtResource("6_ot4tf")
165171
centered = false
166172

167173
[node name="Label" type="Label" parent="GameStats/HBoxContainer6"]
168174
layout_mode = 2
169175
size_flags_horizontal = 3
170176
theme_override_colors/font_color = Color(0.945098, 0.945098, 0.945098, 1)
171-
theme_override_font_sizes/font_size = 32
177+
theme_override_font_sizes/font_size = 96
172178
text = "0"
173179

174180
[node name="BoardTextRect" type="Panel" parent="."]
175181
visible = false
176-
offset_left = 340.0
182+
offset_left = 500.0
177183
offset_top = 70.0
178-
offset_right = 852.0
179-
offset_bottom = 582.0
184+
offset_right = 1524.0
185+
offset_bottom = 1094.0
180186
theme_override_styles/panel = SubResource("StyleBoxFlat_103kv")
181187

182188
[node name="Board" parent="." instance=ExtResource("2_2ltbx")]
183-
position = Vector2(340, 70)
189+
position = Vector2(500, 70)
184190

185191
[node name="Panel" type="Panel" parent="."]
186192
visible = false
@@ -201,11 +207,11 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_imdoc")
201207
stream = ExtResource("8_7jpwb")
202208

203209
[node name="BtnNewGame" type="TextureButton" parent="."]
204-
offset_left = 895.0
210+
offset_left = 1596.0
205211
offset_top = 74.0
206-
offset_right = 2054.0
212+
offset_right = 2755.0
207213
offset_bottom = 432.0
208-
scale = Vector2(0.2, 0.2)
214+
scale = Vector2(0.3, 0.3)
209215
texture_normal = ExtResource("10_qtl06")
210216

211217
[node name="Label" type="Label" parent="BtnNewGame"]
@@ -221,11 +227,11 @@ horizontal_alignment = 1
221227
vertical_alignment = 1
222228

223229
[node name="BtnClearDebugLabels" type="TextureButton" parent="."]
224-
offset_left = 893.0
225-
offset_top = 391.0
226-
offset_right = 2052.0
227-
offset_bottom = 749.0
228-
scale = Vector2(0.2, 0.2)
230+
offset_left = 1656.0
231+
offset_top = 829.0
232+
offset_right = 2815.0
233+
offset_bottom = 1187.0
234+
scale = Vector2(0.25, 0.25)
229235
texture_normal = ExtResource("11_bw3je")
230236

231237
[node name="Label" type="Label" parent="BtnClearDebugLabels"]
@@ -241,11 +247,11 @@ horizontal_alignment = 1
241247
vertical_alignment = 1
242248

243249
[node name="BtnMatchCol" type="TextureButton" parent="."]
244-
offset_left = 894.0
245-
offset_top = 498.0
246-
offset_right = 2053.0
247-
offset_bottom = 856.0
248-
scale = Vector2(0.2, 0.2)
250+
offset_left = 1657.0
251+
offset_top = 990.0
252+
offset_right = 2816.0
253+
offset_bottom = 1348.0
254+
scale = Vector2(0.25, 0.25)
249255
texture_normal = ExtResource("12_4fgvl")
250256

251257
[node name="Label" type="Label" parent="BtnMatchCol"]

game_board/GameBoard.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func new_game():
407407
for gem_cell in vbox.get_children():
408408
gem_cell.initialize(GEM_COLOR_NAMES[randi() % GEM_COLOR_NAMES.size()])
409409
gem_cell.get_child(1).visible = true
410-
gem_cell.get_child(1).position = Vector2(32,32)
410+
gem_cell.get_child(1).position = Enums.SRPITE_POS
411411
# B:
412412
check_board_explode_matches()
413413

@@ -416,7 +416,7 @@ func debug_clear_debug_labels():
416416
for gem_cell in vbox.get_children():
417417
gem_cell.debug_show_debug_panel(false)
418418
gem_cell.get_child(1).visible = true
419-
gem_cell.get_child(1).position = Vector2(32,32)
419+
gem_cell.get_child(1).position = Enums.SRPITE_POS
420420
var debug_name = Enums.get_color_name_by_value(gem_cell.gem_color).substr(0,1)
421421
var debug_str = "["+debug_name+"] " + str(gem_cell.get_child(1).visible)
422422
Enums.debug_print(debug_str, Enums.DEBUG_LEVEL.DEBUG)

game_board/GemCell.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class_name GemCell
88
@onready var debug_ui_panel:Panel = $DebugUIPanel
99
@onready var audio_gem_explode:AudioStreamPlayer = $AudioGemExplode
1010
# PROPS
11-
const SPRITE_SCALE:Vector2 = Vector2(0.25, 0.25)
12-
const DROP_OFFSET:int = 64 # (the sprite is centered in the 64x64 container, and uses a 32,32 position)
11+
const SPRITE_SCALE:Vector2 = Vector2(0.5, 0.5)
12+
const DROP_OFFSET:int = 128 # (the sprite is centered in the 128x128 container, and uses a 64,64 position)
1313
var gem_color:Enums.GemColor
1414
# Declare and preload textures
1515
var gem_textures: Dictionary = {

game_board/board.tscn

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ script = ExtResource("1_8mgoe")
1212

1313
[node name="Background" type="Panel" parent="."]
1414
visible = false
15-
offset_right = 512.0
16-
offset_bottom = 512.0
15+
offset_right = 1024.0
16+
offset_bottom = 1024.0
1717
theme_override_styles/panel = SubResource("StyleBoxFlat_yj5kd")
1818

1919
[node name="GridContainer" type="GridContainer" parent="."]
20-
offset_right = 512.0
21-
offset_bottom = 512.0
20+
offset_right = 1024.0
21+
offset_bottom = 1024.0
2222
theme_override_constants/h_separation = 0
2323
theme_override_constants/v_separation = 0
2424
columns = 8
@@ -40,47 +40,47 @@ visible = false
4040
layout_mode = 2
4141

4242
[node name="HBoxContainer" type="HBoxContainer" parent="."]
43-
custom_minimum_size = Vector2(512, 512)
43+
custom_minimum_size = Vector2(1024, 1024)
4444
offset_right = 512.0
4545
offset_bottom = 512.0
4646
theme_override_constants/separation = 0
4747

4848
[node name="VBoxContainer0" type="VBoxContainer" parent="HBoxContainer"]
49-
custom_minimum_size = Vector2(64, 0)
49+
custom_minimum_size = Vector2(128, 0)
5050
layout_mode = 2
5151
theme_override_constants/separation = 0
5252

5353
[node name="VBoxContainer1" type="VBoxContainer" parent="HBoxContainer"]
54-
custom_minimum_size = Vector2(64, 0)
54+
custom_minimum_size = Vector2(128, 0)
5555
layout_mode = 2
5656
theme_override_constants/separation = 0
5757

5858
[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"]
59-
custom_minimum_size = Vector2(64, 0)
59+
custom_minimum_size = Vector2(128, 0)
6060
layout_mode = 2
6161
theme_override_constants/separation = 0
6262

6363
[node name="VBoxContainer3" type="VBoxContainer" parent="HBoxContainer"]
64-
custom_minimum_size = Vector2(64, 0)
64+
custom_minimum_size = Vector2(128, 0)
6565
layout_mode = 2
6666
theme_override_constants/separation = 0
6767

6868
[node name="VBoxContainer4" type="VBoxContainer" parent="HBoxContainer"]
69-
custom_minimum_size = Vector2(64, 0)
69+
custom_minimum_size = Vector2(128, 0)
7070
layout_mode = 2
7171
theme_override_constants/separation = 0
7272

7373
[node name="VBoxContainer5" type="VBoxContainer" parent="HBoxContainer"]
74-
custom_minimum_size = Vector2(64, 0)
74+
custom_minimum_size = Vector2(128, 0)
7575
layout_mode = 2
7676
theme_override_constants/separation = 0
7777

7878
[node name="VBoxContainer6" type="VBoxContainer" parent="HBoxContainer"]
79-
custom_minimum_size = Vector2(64, 0)
79+
custom_minimum_size = Vector2(128, 0)
8080
layout_mode = 2
8181
theme_override_constants/separation = 0
8282

8383
[node name="VBoxContainer7" type="VBoxContainer" parent="HBoxContainer"]
84-
custom_minimum_size = Vector2(64, 0)
84+
custom_minimum_size = Vector2(128, 0)
8585
layout_mode = 2
8686
theme_override_constants/separation = 0

game_board/board_square_0.tscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
bg_color = Color(0, 0, 0, 0.2)
55

66
[node name="BoardSquare0" type="Control"]
7-
custom_minimum_size = Vector2(64, 64)
7+
custom_minimum_size = Vector2(128, 128)
88
layout_mode = 3
99
anchors_preset = 0
1010
offset_right = 64.0

game_board/board_square_1.tscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
bg_color = Color(1, 1, 1, 0.188235)
55

66
[node name="BoardSquare1" type="Control"]
7-
custom_minimum_size = Vector2(64, 64)
7+
custom_minimum_size = Vector2(128, 128)
88
layout_mode = 3
99
anchors_preset = 0
1010
offset_right = 64.0

0 commit comments

Comments
 (0)