diff options
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/levels/puzzle/puzzle.gd | 2 | ||||
-rw-r--r-- | scenes/levels/typeracer.gd | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/scenes/levels/puzzle/puzzle.gd b/scenes/levels/puzzle/puzzle.gd index 746e33e..f1f83e5 100644 --- a/scenes/levels/puzzle/puzzle.gd +++ b/scenes/levels/puzzle/puzzle.gd @@ -27,7 +27,7 @@ func _ready(): button.connect("on_click", self, "on_anybutton_click", [i+1]) parts.append(button) $Pieces.add_child(button) - _initial_shuffle(100) + _initial_shuffle(0) _render_state() func _position_from_index(idx): diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd index e91e360..9251298 100644 --- a/scenes/levels/typeracer.gd +++ b/scenes/levels/typeracer.gd @@ -30,7 +30,7 @@ func _process(delta): eval() func eval(): - if $Label.text.replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\r\n', '').replace('\r', '').replace(' ', ''): + if $Label.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', ''): $TextEdit.readonly = true $Button.disabled = true $Incorrect.visible = false @@ -40,9 +40,10 @@ func eval(): timer = 0 $TextEdit.text = "" $Incorrect.visible = true + started = false func eval_corr(): - if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'): + if $Label.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', ''): $TextEdit.readonly = true $Button.disabled = true $Incorrect.visible = false |