Skip to content

Commit b98cf4f

Browse files
committed
inactivity timer done
1 parent a9e38bf commit b98cf4f

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

enums.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
extends Node
22
# APP
33
const APP_VER:String = "0.5.0"
4-
const APP_BLD:String = "20240519"
4+
const APP_BLD:String = "20240524"
55
# GAME
66
const TWEEN_TIME:float = 0.25
77
const EXPLODE_DELAY:float = TWEEN_TIME*2.0
88
const SRPITE_POS:Vector2 = Vector2(64,64)
9-
const HINT_DELAY:int = 5
9+
const HINT_DELAY:int = 10
1010
# VARS
1111
var current_debug_level = DEBUG_LEVEL.INFO # Global variable to set the current debug level
1212

game_boards/board_space/board_space.gd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ func _ready():
3838
const brd_sq1 = "res://game_boards/board_space/assets/board_square_1.tscn"
3939
CmnFunc.fill_grid(hbox_container, grid_container, brd_sq0, brd_sq1)
4040

41-
func _process(delta):
42-
cont_debug_label.text = "TIMER left secs..."
41+
func _process(_delta):
42+
cont_debug_label.text = "TIMER Left (secs)"
4343
cont_debug_value.text = str(round(inactivity_timer.time_left))
4444

4545
# NOTE: iOS [Xcode] has no cells if "CmnFunc.fill_hbox()" is in the _ready() func above
@@ -65,6 +65,8 @@ func init_game2():
6565
# E: check board after init
6666
await CmnFunc.delay_time(self, 0.25)
6767
process_game_round()
68+
# F: start timer
69+
inactivity_timer.start()
6870

6971
func new_game():
7072
Enums.debug_print("Starting new game, resetting board.", Enums.DEBUG_LEVEL.INFO)

game_boards/board_space/game_space.tscn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,14 @@ text_overrun_behavior = 1
462462

463463
[node name="ContDebugValue" type="Label" parent="ContDebug/VBoxContainer"]
464464
layout_mode = 2
465+
size_flags_vertical = 3
465466
theme_override_fonts/font = ExtResource("16_donlk")
466467
theme_override_font_sizes/font_size = 52
467468
text = "Cont
468469
Debug
469470
Value"
471+
horizontal_alignment = 1
472+
vertical_alignment = 1
470473

471474
[node name="BtnNewGame" type="TextureButton" parent="."]
472475
offset_left = 1600.0

0 commit comments

Comments
 (0)