Fixes for arbitrary word lengths
This commit is contained in:
parent
9190ffffd4
commit
d1cc8ae05a
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue