From d1cc8ae05a3dde7ce1a83c89a72a3b15ea3f35c6 Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Fri, 13 May 2022 17:24:09 -0400 Subject: [PATCH] Fixes for arbitrary word lengths --- src/Main.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.gd b/src/Main.gd index faa4672..4cedfe1 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -22,6 +22,7 @@ onready var error_text_color_default = $C/V/V/ErrorText.get("custom_colors/font_ func _ready() -> void: + $C/V/LetterGrid.columns = letter_count for _i in range(guess_count): var letter_array := [] for _j in range(letter_count): @@ -48,7 +49,7 @@ func _ready() -> void: func type_letter(letter: String) -> void: - if ended or input_guess.length() >= 5: + if ended or input_guess.length() >= letter_count: return var index := input_guess.length() letter = letter[0]