Skip to content

Commit 26d3477

Browse files
committed
FIXES for iOS issues
1 parent 8957440 commit 26d3477

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

game_boards/all_common/cmn_gem_cell.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const gem_textures_space: Dictionary = {
4141
Enums.GemColor.BLU: preload("res://assets/gems/space/Space_B.png"),
4242
Enums.GemColor.PRP: preload("res://assets/gems/space/Space_P.png")
4343
}
44-
var gem_textures:Dictionary = {}
44+
var gem_textures:Dictionary = gem_textures_food
4545

4646
func initialize(colorIn: Enums.GemColor, dictIn:Enums.GemDict):
4747
# A:

game_boards/board_space/board_space.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ func _ready():
4040
# So, instead of having [game_space.gd] flip `visible` flag on this scene, let's do both of these here to alleviate the issue
4141
# Plus, even when calling both fill_grid funcs, then "process_game_round()" - it made the matching sound sin the background on main game launch, etc.
4242
func init_game():
43+
# IMPORTANT: This game scene was just made visible before this func is called,
44+
# so give the engine a render frame to set the HBoxs or they wont exist yet
45+
call_deferred("init_game2")
46+
47+
func init_game2():
4348
# A: clear all GemCells
4449
for vbox in hbox_container.get_children():
4550
for cell in vbox.get_children():

0 commit comments

Comments
 (0)